[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Garbage collection slowdown
 
- From: "Martin Stone" <Martin.Stone@...>
 
- Date: Tue, 5 Feb 2002 16:53:54 -0000
 
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.