Thursday, April 21, 2011

Performance Boosters

I've been doing a few optimization experiments in Unity:



Here is a scene of 49 buildings, each is made up of many smaller objects like windows and doors. The buildings each uses approximately 45 draw cells.

Without any optimization, the scene uses over 2000 draw cells. To improve performance I parented each row of seven into an empty gameobject, then added the combine childeren script to each. Now I get a maximum of 57 draw cells.

This number could be reduced even further by combining several rows together, and by adding Occlusion Culling.

No comments:

Post a Comment