2D Toolkit Forum
2D Toolkit => Support => Topic started by: Eikyou on September 10, 2012, 09:17:52 am
-
Hi everyone,
I use an AnimatedSprite for play some anims (differents Anim Libs). I play a specific anim many times and just for this anim, first I have a CPU peak when I run on iOS, resulting a freeze. But after the first one it work fine.
Does anyone knows this issue ? It's maybe during the library change ? I'm lost.
Thank you for your time.
-
If you're changing library, the texture will be loaded on first use. You will get a CPU spike then. The best way is to do this once at initialization / level load to make sure the texture is resident. This is how Unity does things, and as far as I'm aware, you can't change it. You can always workaround like I described though.
-
It's working when I play it once at initialization. Thank you Unikron !