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.
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.