Author Topic: Performance for moving sprite. Panel or under uiroot?  (Read 3224 times)

Dengao

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Performance for moving sprite. Panel or under uiroot?
« 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  :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Performance for moving sprite. Panel or under uiroot?
« Reply #1 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.