Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Not a lot of culling going on ...

Author
Message
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 23rd Sep 2013 14:09 Edited at: 23rd Sep 2013 14:09
I was surprised to see that as I zoomed in on one of my ships in my test app that the FPS remained pretty much the same (second screenshot). So I added a few lines of code to hide the outer 10 ships manually when the camera gets close to my centre ship, and look at the FPS increase!

So does anyone know if AppGameKit does any culling at all? Here's hoping there is some basic off screen culling in V2 if there isn't in V1.

Attachments

Login to view attachments
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 23rd Sep 2013 14:24
I assumed there was some simple culling in 3D but it looks like there isn't. That's quite a difference in speed!

You can never have too much sausage
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 23rd Sep 2013 15:16 Edited at: 23rd Sep 2013 15:17
I'm wondering if perhaps the vast array of resolutions supported has affected the on/off screen detection, and perhaps it does cull eventually. In any case, it's a heads up to anyone making a game with 3D. Some manual culling should see some serious performance benefits. Luckily with Dreadcom the perspective will be simple enough for me to calculate the culling without having to learn a load of new math formulae.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th Sep 2013 17:37
The 3D in version 1 was thrown together very quickly and isn't very efficient. It doesn't do any culling or batching, but this will be addressed in version 2.
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 24th Sep 2013 20:14
Good to know Paul! Thanks for letting us know. I'll forget about any custom culling in lieu of version 2.
Zwarteziel
13
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 25th Sep 2013 11:57
Quote: "...but this will be addressed in version 2."


Oh, that is such good news! I've been experimenting with manual culling-routines, but am finding AppGameKit a lot more slow then DBPro. This will help a lot. Am I right in assuming the culling will be part of the 3D-phase of AppGameKit V2 (estimation on Kickstarter-page is january 2014)?
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 26th Sep 2013 18:14
That is actually nice to hear, as I was fairly impressed with it's speed in the main. Nice to know there is good room for improvement!

Login to post a reply

Server time is: 2024-11-24 19:51:35
Your offset time is: 2024-11-24 19:51:35