- Home /
Draw Calls
Why is it when I enter a building my draw calls are still high, say they are 30 outside when looking north, if I enter the warehouse and look north the draw calls are still 30 I thought if you couldn't see the object they would not count in the draw calls ?
Answer by tonycoculuzzi · Aug 03, 2012 at 01:08 PM
Even though objects are behind other objects (and thus, not visible), they are still drawn, you just don't see them because objects are then drawn in front of them. In order to cut back on the amount of draw calls, look into Occlusion Culling. (unity pro only)
If you don't have unity pro, look into creating a class that hides game objects on a trigger hit, and another that unhides them when it's hit, then have an array of public gameobjects for each trigger, and have the array reference all the gameobjects you want hidden/unhidden. It's a hassle, but it's an okay workaround if you don't have unity pro/can't use occlusion culling.
But with Occlusion Culling set up in the warehouse it still counts the objects behind the wall even though I can't see them, why?
It shouldn't, unless a part of the mesh you're trying to hide is still visible.
Strange .. It only culls objects outside the camera field of view, if I stand right behind a building about 1mt away facing the wall it still shows everything the other side of the building and if I turn around everything disappears, gets culled.
Your answer
Follow this Question
Related Questions
Help using CombineChildren :/ 1 Answer
CombineMeshes unexplainable draw calls 0 Answers
Static Batching HELP!! 1 Answer
Objects using the same material are incurring separate draw calls. 0 Answers
whats better mesh or atlas 1 Answer