Author Topic: UI2DSpriteAnimation causing spikes in UIPanel.LateUpdate  (Read 2748 times)

Bug5532

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
UI2DSpriteAnimation causing spikes in UIPanel.LateUpdate
« on: March 27, 2015, 10:07:36 AM »
Hi,
I have an issue with UI2DSpriteAnimation causing spikes in the UIPanel.LateUpdate and Garbage Collection.
Is there any way to fix this?


Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI2DSpriteAnimation causing spikes in UIPanel.LateUpdate
« Reply #1 on: March 27, 2015, 11:14:38 PM »
Are the sprites in the same atlas? If not, then each time you do a sprite swap it will need to create a brand-new draw call.