Hello Guest

Author Topic: loading time when showing a sprite the first time  (Read 2998 times)

tom123

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
loading time when showing a sprite the first time
« 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?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: loading time when showing a sprite the first time
« Reply #1 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.