Recently I’m testing my game on iPod2 device. My game’s UI solution is NGUI. I found that UIPanel.LateUpdate alwasy cost about 7ms - 10ms every frame. I think this is abnormal, does anyone know what’s going on about the high cpu usage in UIPanel.LateUpdate?
Yeah it’s rebuilding one of the atlas materials every frame. This is not a good thing.
As you can see UIPanel runs over all transforms on LateUpdate() to see if their geometry has changed and updates matrices and clipping bounds. So CPU usage like this is pretty standart. You can adress this as optimization request to NGUI creator at Tasharen.com.