Hi guys
I am working with NGUI 2.x.x. I think 2.6.1 or 2.6.3 one of these.
I have done all the GUI, but as targetted on Android App, I am facing that it lags too much,
I have studied on these forums and I have applied all the techniques came under my eyes, like Panel.static, Panel.cull.
As a large GUI, I have Profiled to see more precise details and i found that
Textures: 0.56 GB,
I deleted the NGUI and pressed Play and then there was only
Textures: 176 MB.
About 300 MB are took by NGUI, when I have only 4-5 Atlases, all lesser then 512x512 and the last 2048x2048 (16 MBytes).
My atlas textures does not pass 25 MB if we want to Floor the value.
Seeing this I tried to break my GUI into several Prefabs, Instantiate and destroy them as I need, using a Loading Screen, but it didnt helped me because the Profiler is still saying exactly the same value.
So this cause the app to close (crash due to memory issue) after few minutes of use, and the application is countinuesly lagging while also not using, only stopped, no gui movement, or anything.
Another thing i tried to do is that as I saw that modifying Panel.MAlpha with Animation to move from one screen to another was heavy. I have replaced the animation with just movement, but it is still heavy.
At last I have also modified UIButton and UIButtonColor, making comment the codelines which was doing Hover and Active.
But not enough change made this optimization passes.
Hope some one can help.
Thanks.
newDev