lua-users home
lua-l archive

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


Hello everyone.  I wonder if anyone can help me...

I'm repeatedly forcing garbage collection every frame (in a game) like this:

	lua_setgcthreshold(L, 0);

The time taken for this function to complete seems to increase with each call.  In between calls the same lua function is called every frame, generating (presumably) a fixed amount of garbage each time.  

Does anyone know what I can do about this?  

Thanks,

Martin.