Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Dengao on April 11, 2016, 06:55:01 AM

Title: Performance for moving sprite. Panel or under uiroot?
Post by: Dengao on April 11, 2016, 06:55:01 AM
Hey! If a sprite is always moving, in my case a health bar. Should it be in a panel or just under uiroot? What is best for performance for moving sprites. Or should I move the entire panel?

Thanks in advance  :)
Title: Re: Performance for moving sprite. Panel or under uiroot?
Post by: ArenMook on April 12, 2016, 02:29:18 AM
Depends on how much other stuff is underneath the same panel. If you have thousands of widgets then separating the animated one into its own panel will improve performance.