Maximum number of gameobjects recommended in a scene for Mobile Game?

Hello everyone.

What is the maximum thresh-hold for number of gameobjects in a scene for mobile game that will allow the scene to load and run smoothly?

I am working on a 2D mobile game. I have almost 10,000 gameobjects in my main scene. There are only 5 Update() calls and other gameobject mostly are part of UI that is used to set different settings and info of the game and other stuff. I can get the number down to 8-9K but not less. Is it okay for a mobile game?

Hello khamosh132,

There is no magic answer. The number of gameobjects in the scene may impact performance, but it is only part of the impact.

In general the total impact for each ‘Code’ is…

  • ImpactOfCode x NumberOfConcurrentCallsToThatCode

So in general the optimization strategy is…

  • Lower the ImpactOfCode
  • Or Reduce the NumberOfConcurrentCallsToThatCode

For more information on how to measure the current ImpactOfCode, learn more about the Unity Profiler


Enjoy!

-Sam