I noticed something interessting with it's memory usage when running malvado with demo for a good length of time. In the windows task mangager I always check occasionally how much memory it's using, and if I run it for a short time (about 10 minutes or less) the memory use is increasing and I was under the impression that I have a memory leak somewhere.
But now I've run the demo for a few longer sessions (today for a couple of ours straight) and I noticed that the memory usage increase stops at around 65-70mb, and then drops to about 12mb after about 30-45 minutes. From that time on the memory usage varies between about 12mb - 18mb. The attractmode runs 5 different level demos, and use the actual game engine. What I find strange is how bgdi/malvado initially needs about 70mb and later only about 18mb for doing the same thing over and over. It looks like a sawhtooth pattern almost if you where to draw it on a graphpaper.
Now I wonder if windows' taskmanager gives a representive figure on the acutal memory use. I've read somewhere http://stackoverflow.com/questions/131303/linux-how-to-measure-actual-memory-usage-of-an-application-or-process
that the ps command in linux doesn't show the correct figure in all cases. I'm under the impression that windows reserves a rather large chuck of memory and then decides to free a large part of it to a size more in line with the programs actual memory usage.
Can someone explain this phenomenon or has similair experiences? I find it quite strange and it learned me that you need to run a program for a couple of hours if you want to know if there is a memory leak or not. Just doing this test made me rule out the likeness of a memory leak.
O btw, the demo runs pretty well and is very stable.
I fixed a really hard bug with jumping on platforms and now it's working nicely. There are a few small minor things but those are not really worth fixing right now.