Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Bug5532 on March 27, 2015, 10:07:36 AM

Title: UI2DSpriteAnimation causing spikes in UIPanel.LateUpdate
Post by: Bug5532 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?
(https://dl.dropboxusercontent.com/u/41438397/Screen%20Shot%202015-03-27%20at%2014.48.30.png)

Thanks!
Title: Re: UI2DSpriteAnimation causing spikes in UIPanel.LateUpdate
Post by: ArenMook 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.