I'd eventually have to face this problem. My current game uses quite a lot of sprites(more than 500 already and growing). So, it takes about a full minute to load all of them. On faster PPCs it would be half a minite, but it's still a problem.
Well, I'll finally split them into those loaded in a game start and those in a level loading. I'll only load necessary sprites. Still too long. The user will have to wait about 20 second while game is loaded and 15-20 second to load a level.
All sprites are located in a file system as png files. Now they are temporary gifs, but it's for development in Visual Studio.
I see several sollutions for this problem and I want you to help me estimate their efficacy. I have no idea how much speed I win with them, so maybe you know it better.
1. Join several sprites together in one "spriteset".
Cons: It will be harder to manage them, they should be of one size - it's a lot of pain trying to work with a sprite consisting 5 sprites - 8x8, 16x16, 32x32, 48x48, 64x64. I have several such particles.
2. Add sprites as resources to exe file(as pngs anyway).
Cons: Much harder to manage them, graphics artist will have troubles working with game graphics. Big(6-8mb) exe file is not something I like a lot. Not sure if it win any time. Not sure if exe file won't grow too much compared to separated pngs.
3. Implement pnglib.
Cons: Don't know if it help.
How do people do this? I've seen many games loaded in no time and most of them load very fast or at least acceptable.
Well, I'll finally split them into those loaded in a game start and those in a level loading. I'll only load necessary sprites. Still too long. The user will have to wait about 20 second while game is loaded and 15-20 second to load a level.
All sprites are located in a file system as png files. Now they are temporary gifs, but it's for development in Visual Studio.
I see several sollutions for this problem and I want you to help me estimate their efficacy. I have no idea how much speed I win with them, so maybe you know it better.
1. Join several sprites together in one "spriteset".
Cons: It will be harder to manage them, they should be of one size - it's a lot of pain trying to work with a sprite consisting 5 sprites - 8x8, 16x16, 32x32, 48x48, 64x64. I have several such particles.
2. Add sprites as resources to exe file(as pngs anyway).
Cons: Much harder to manage them, graphics artist will have troubles working with game graphics. Big(6-8mb) exe file is not something I like a lot. Not sure if it win any time. Not sure if exe file won't grow too much compared to separated pngs.
3. Implement pnglib.
Cons: Don't know if it help.
How do people do this? I've seen many games loaded in no time and most of them load very fast or at least acceptable.