[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Lua gc in games
- From: Thatcher Ulrich <tu@...>
- Date: Sun, 5 Aug 2001 17:53:53 -0400 (EDT)
Re: the Amped gc issue... what happens if you force a gc every frame?
That should collect all garbage generated during that frame. It's
probably high total overhead, compared to doing gc periodically because
I'm guessing the collector visits all objects on the Lua heap during gc,
just to collect a frame's worth of garbage, but then it should probably
keep the worst-case gc time within reason. That is, if your Lua heap size
is within reason...