Spuzzle - My First Game

Miscellaneous Forums/Blitz Showcase/Spuzzle - My First Game

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

FlushMem is needed to clear up any memory allocated and no longer used or in scope -- temporary variables, internal stuff, as well as all objects no longer referenced. (This includes stuff inside functions and methods that are called from the same scope as FlushMem.)

You generally just have to place it in your game's main loop as it'll free up anything called from there. Leaving it out will lead to memory leakage and eventual slowdown/crashing.