By Halo Shg
CleanMem frees your application's excess memory which may improve performance, especially on older computers.
Compatibility: Windows XP and above (including 8 as far as I know)
HUGE Thanks to score_under for rewriting and optimizing this DLL in ASM. If you're giving credit, I'd suggest crediting him.
You should probably call this on room change and game end. More won't do any harm, but it wouldn't really be necessary.
This DLL is only 1kb in size.
On Game Maker 8.1+ and Studio you need to call cleanmem_init(0); instead of cleanmem_init(); at the start of the game. This is because GM no longer interprets missing parameters as 0, but rather as an error!
Legal Information And Licensing
Ok, so a lot of people have been asking me about this (both here and in PM's). I figured I'd better put up some info.
Use it for whatever you want, no restrictions. No credit needed.
I am, however, curious as to who uses this DLL, so if you want to PM/email ([my username without spaces] [at] gmail [dot] com) me when you release a game with it, I would be delighted
Use the download link provided with the correct extension (source was written in C by myself and ASM by score_under)
Update 2014/01/07 - Fixed download link and removed Comic Sans (*why* would I choose CS in the first place? I have no idea.)
Edited by halo shg, 08 January 2014 - 05:14 PM.