OK. The problem is with the PlayMusic function in Tier 2. I have even commented out every place I have the function and the program doesn't have any memory issues.
It works as you would expect it to; when I load graphics the memory increases. When I release graphics from memory it decreases.
This is definitely something Paul should look at.
I have left my program running on the title screen for over an hour and the memory didn't increase but a few kilobytes here and there.
But with the PlayMusic function uncommented, with it looping, the memory would increase by about 3MB every time the music started over, and that would cause a crash because memory would reach over 300MB when just sitting on the title screen.
This happen with both lines of code:
Quote: "
agk:
layMusic(titlemusic1,1,titlemusic1,titlemusic1);
"
and
Quote: "
agk:
layMusic(titlemusic1,1);
"
@Edit
Just to confirm; I left the program to run overnight and it actually performed better.
Here are the numbers. It shows the memory usage and the time:
71, 428K at 11:36pm
70, 908K at 12:02am
49, 436 at 6:43am
Can someone else confirm my findings?
Prove Your Worthiness
KG2Entertainment.com