Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: chetanmrane on January 10, 2014, 04:39:52 AM
-
Hi All,
I am creating a sport game and handling 2d part by NGUI.
I might have more than 30 pages in my game and to manage those i am finding the best approach.
My main objective is to manage Runtime memory and also memory allocation as the game targets Mobile platform (android Arm6/Arm7 and iOS)
So can someone guide me to do this?
is it a good idea to keep all the prefabs (one ngui screen - one prefab) in resource folder and load/unload them on demand?
or is there a better approach i could use?
thanks,
Chetan Rane
-
The one and only thing you should worry about is texture memory. You need to ensure that you don't keep atlases in memory that are not being used. More importantly, if you have UITextures in your scene, same thing applies -- don't keep their textures in memory if you are not using them.
Everything else is negligible, provided you don't keep too many things active. Hiding things off-screen but keeping them enabled is a bad idea. Disabling parts of the UI you don't need is a better idea.