Feature Creep / Rendering optimization: Only draw, when entity is actually visible

Author
Message
Moshroom
8
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 20th Jul 2015 07:49 Edited at: 20th Jul 2015 13:45
I've been playing with GameGuru for a week now and I noticed something that could easily enhance the performance. Here's my story:

I created a map of a city with a warehouse (one that has stuff inside) on its perimeter. No matter where my character stands on the map, when he faces the warehouse, the amount of draw calls jumps to 1600 and frame rate drops from 40 to 15. This happens even if there are buildings between my character and the warehouse blocking the line of sight. I think these draw calls are completely unneccessary.

(I know I could just create separate maps for the warehouse and the city, but I think this optimization would boost the performance of the engine in other situations as well and enable the engine to hold large maps properly.)

So my suggestion is that you would limit the draw calls only to objects that are actually visible.

Edit: Explanations for attached images: 1. The warehouse. 2. Some buildings in the opposite side of the street. 3-5. Player standing behind the building facing the warehouse.

Attachments

Login to view attachments
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 21st Jul 2015 17:43
Vote for that feature to be the most important thing you need.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

Moshroom
8
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 21st Jul 2015 21:37
This feature is already voteable? I probably lack some basic reading comprehension skills, sorry.

The most fitting voteable feature seems to be "Occlusion". I've voted for that one. But this rises another question (mostly just for academic interest): What does the "occlusion" option in the editor currently do? If I've interpreted my results correctly, It seems to reduce the framerate instead of improving it...
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 22nd Jul 2015 14:06
yes, it is not functioning and should not be used. Should be useful again after the performance update, in progress now.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 22nd Jul 2015 23:18
Nice looking map Moshroom
looks very natural really great !!
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM

Login to post a reply

Server time is: 2024-04-19 22:36:22
Your offset time is: 2024-04-19 22:36:22