lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Also I do avoid creating tables (avoid, but not completly disallow)
> during normal operation, I have been able to keep my garbage generation
> relatively modest so far.

It seems like you're trying to fight a tsunami with a feather as the
complexity and number of your tasks increase though.  The problem is, unless
the garbage collector is very smart its going to have to go through pretty
much every single object in existance checking its reference count, when a
few quick checks after an expression would solve the problem.  Going through
every object at the end of every frame seems to be a major amount of
overhead.  Of course, the garbage collector might not be as naive as this, I
haven't analysed that part of Lua yet.

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com