[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Cleaning up specific lua scripts
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 24 Mar 2010 13:07:32 +0200
On Wed, Mar 24, 2010 at 1:00 PM, Ricky Haggett <ricky@honeyslug.com> wrote:
> Is there a way of doing this programmatically? I was thinking maybe I could
> compare the state of global before and after loading a level-script to
> figure out the level specific stuff? But maybe there’s an easier way?
Would not collectgarbage() do the job? May have to call it a few
times, use the 'count' argument before & after to see what you've
reclaimed. And (of course) make sure there are genuinely no
references hanging around, non-weak tables being the big culprit