Garbage collection - manually wiping EVERYTHING!
Posted
by Glycerine
on Stack Overflow
See other posts from Stack Overflow
or by Glycerine
Published on 2010-04-09T09:03:53Z
Indexed on
2010/04/09
9:13 UTC
Read the original article
Hit count: 286
I have been building a game for a while (nearly done) - But the game needs a replay button and its a big task.
I know the GC is dreadful in flash, but I wanted to know if there is a way to wipe EVERYTHING as if the flash app has just begun. Clearing memory, game data - I haven't to worry about game loading as its not really heavy on data.
Everything pretty much lives in a DataModel - but I fear if I just clear the all variables, I'll have pockets of orphaned memory.
Any forwarding idea would be great.
cheers guys.
© Stack Overflow or respective owner