2D Toolkit Forum

2D Toolkit => Support => Topic started by: tom123 on April 19, 2014, 09:47:05 pm

Title: loading time when showing a sprite the first time
Post by: tom123 on April 19, 2014, 09:47:05 pm
On older devices like iPad2 or iPhone4 there's always a fraction of a second that the game stops, whenever some particular sprites get shown the very first time. If that sprite gets shown the second time, it's all fine.

I don't have Unity Pro, so I couldn't use the exact profiling and now I can't even say a 100% sure that it's because of any toolkit 2d code. But generally, is there any known performance consuming code that gets run every time a sprite is shown the first time?

Title: Re: loading time when showing a sprite the first time
Post by: unikronsoftware on April 20, 2014, 10:15:00 am
Unity uploads the texture into VRAM the first time it is drawn. You can avoid this hitch by drawing all your sprites once. It works even if behind a loading screen.