Loading Texture2D is extremly slow on XBOX360

Posted by AvrDragon on Game Development See other posts from Game Development or by AvrDragon
Published on 2012-12-09T18:46:55Z Indexed on 2012/12/09 23:45 UTC
Read the original article Hit count: 235

Filed under:
|
|

I have ~100 sprites for each level im my XNA game. On windows it takes ~2 seconds to load them all. Unfortunately on XBOX360 it takes ~30-60 seconds. Am i doing something wrong? Essentially the loading code ist just like this:

Texture2D sprite1 = levelContent.Load<Texture2D>("images/level_1/my_sprite_1");
...
Texture2D sprite100 = levelContent.Load<Texture2D>("images/level_1/my_sprite_100");

(i use an own content manager for each level to release all level-specific textures at once) Of course i can reduse the ammount of sprites using a spritesheet, but it's extremly painfull for me now. Do i have a better option? And just curious - why is there such huge difference in image loading time?

© Game Development or respective owner

Related posts about XNA

Related posts about sprites