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?
Answer by srivello · Nov 02, 2016 at 12:14 PM
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 https://www.youtube.com/watch?v=sBpXiJ9G3OY
Enjoy!
-Sam
Your answer
![](https://koobas.hobune.stream/wayback/20220612095859im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Using separate GameObjects for "generic" scripts (Performance) 1 Answer
Does using multiple World Space Canvases affect performance? 0 Answers
What is the standard way to handle UI updates that involve creating and destroying GameObjects? 0 Answers
Is there a performance increase from using point textures instead of Bi/Trilinear textures? 0 Answers
Hotkeys system performance optimization 0 Answers