Hello again,
Sorry about all of these threads, but its crunch time over here and we're trying to get a lot done all at once.
ANYHOW....
I've been working on optimizing my code in oder to reduce memory usage (changed whatever images I could to power of two, dynamically loading music as needed), but my game still takes up massive amounts of memory.
I've been monitoring memory usage via Windows Task Manager in Windows XP, and this is what happens when I run my game:
By the time all is said and done, Windows Task Manager is registering well over 200mb of RAM for my process. What in the world is going on here? All of my images are loaded at runtime, and it seems that the memory goes up substantially when those images are in use. Now, why doesnt it go back down when those particular images are not being drawn? It seems that there is a compounding of memory somewhere.
Is there something obvious I'm not doing? Anyone have suggestion?
Sorry about all of these threads, but its crunch time over here and we're trying to get a lot done all at once.
ANYHOW....
I've been working on optimizing my code in oder to reduce memory usage (changed whatever images I could to power of two, dynamically loading music as needed), but my game still takes up massive amounts of memory.
I've been monitoring memory usage via Windows Task Manager in Windows XP, and this is what happens when I run my game:
Game loaded up, user is at menu screen (modest amount of RAM) User goes to first stage (RAM shoots up as expected) User returns to menu screen (RAM shoots up AGAIN(wth??)) User goes to level two (RAM shoots up) User goes to level three (RAM shoots up) User loses and goes back to menu (RAM stays constant) User goes back to level one (RAM stays constant)
By the time all is said and done, Windows Task Manager is registering well over 200mb of RAM for my process. What in the world is going on here? All of my images are loaded at runtime, and it seems that the memory goes up substantially when those images are in use. Now, why doesnt it go back down when those particular images are not being drawn? It seems that there is a compounding of memory somewhere.
Is there something obvious I'm not doing? Anyone have suggestion?