It’s been a few weeks since I’ve asked a stupid question, so here we go again. I’m pretty certain the answer to this is better memory management - something I have only a scant grasp of.
I’m using Director class. When I move from the menu screen to the main game screen, it takes about 10 seconds for the main game to load even though the game in its entirety is rather laughably simple.
No problem, I thought, I’ll make a loading animation to help players through those 10 seconds. But that animation freezes as well.
At this point, I’m guessing the slew of sprites and sounds that I’m preparing right at the top of my main game file are probably hogging so much memory, not even a simple animation can run uninterrupted.
So I suppose this is two separate questions:
-
Is there any way to “reserve” a chunk of memory so that there’s never total freeze; that something small can always reassure the player that stuff is being processed.
-
What’s the best way of dealing with preparing all the sprites and assets that I need for the game? I’ve been preloading them all on scene change under the belief that if I leave the loading until they’re needed, that I’ll then encounter an unacceptable delay at that point - but maybe this isn’t the case?
Sorry to be vague/stupid/clueless…
Cheers,
Andrew [import]uid: 132606 topic_id: 33079 reply_id: 333079[/import]
