- Home /
Will building interiors slow rendering?
Simple question. Will having a lot of objects that aren't visible slow rendering? If I have a building, should I put furniture and objects in it at edit time, or will the large number of objects slow rendering? I can load the objects when you get into the building (triggered by collider at the door), but is it worth doing that?
Answer by Tanshaydar · Aug 28, 2014 at 09:35 PM
With a good Occlusion culling you can save performance, but regardless, having lots of objects in a scene will come with a price. If most of them static and have simpler colliders, you'll probably won't suffer from performance issues, but since I don't know what you have and what you think to do, I cannot say for sure.
I have many rooms that are filled with many, many objects and nearly half of them are dynamic, but occlusion culling saves me nearly 70% less draw calls.
Sounds about right. I thought occlusion culling was done automatically by Unity. Can you explain this a little better?
Only frustum culling is done automatically, and doesn't help with interiors since everything in the viewport is rendered regardless of being behind walls and so on. Occlusion culling requires either Unity Pro, or a custom solution.
@tanoshimi2000 Occlusion Culling is a Pro only feature, but there are plugins in the Asset Store that will do the job for you. Dynamic OCL is one of them, and works great.