Hi guys,
I have about 7 NGUI panels in my main game scene. Normally only the main HUD panel is onscreen, but profiler is telling me that UIPanel.LateUpdate is taking 10+ ms per frame on my iPhone 3GS, which seems excessive to me. Also I have UIWidget.Update taking 2ms. Anything I should look for to improve this? AIs there a way I can add some code that will stop offscreen panels from using CPU? Most of these panels are not able to be marked as "static" because things move around when they are onscreen and that doesn't work with static.
I was going to use NGUITool.SetActive to disable them all at the beginning of the scene, and enable them when needed, but apparently you can't enable after disabling...so do I need to spawn and despawn my panel dialogs to save CPU? Is there any other way?
Thank you!