Hey there.
(Using latest NGUI Version)
Currently I'm working on optimizing the UI (refering to this topic here:
http://www.tasharen.com/forum/index.php?topic=7763.0)
I experienced something else: when the Menu shows up (using HOTween to Tween the Menu down from above), I get for some frames a significant FPS-Drop from 60FPS to around 45FPS, then when the Tween is over (1 sec), it goes to 55FPS and stays at 55FPS
I already tried the NGUI-Tweens, same results.
This only happens on my iPhone 4. Tried same stuff (HOTween and NGUI Tweens) on my iPad mini. That thing doesn't give a damn and stays at 60 FPS.
I recreated the GUI in a whole new blank Project with only NGUI and HOTween imported. Only a blank scene, just the UI. Same results on both devices.
Here are some informations about the Atlas:
- it's a 2048x2048 Texture and holds all Sprites (Buttons, the Font, normal Sprites)
-> the smallest sprite is around 80x81 and the biggest one is 848x631
- Of course I only get two Drawcalls (Main Camera and UI Camera with the NGUI Atlas)
Here's a video in action in the Unity-Editor (don't mind the messy display of Sprites, only for testing purposes):
https://www.dropbox.com/s/xucsxffuc43m3lz/NGUI.mp4In the Editor it works fine, of course.
Is there something I can do to optimize it on iPhone 4?