As questioned. And If Gideros calls collectgarbage behind the scene, could we know the implementation detail? Is there any optimization applied?
Today i saw lua gc optimization articles
http://www.altdevblogaday.com/2011/07/23/predictable-garbage-collection-with-lua and
http://bitsquid.blogspot.com/2011/08/fixing-memory-issues-in-lua.html those articles made me wonder about Gideros's lua gc
tagging
@atilim
Comments
Here I can recommend a strategy like:
1. Disable garbage collection while in the middle of the game.
2. Call collectgarbage() at the beginning of a level, at the end of a level, when user pauses the game, when user dies, etc.
http://www.nightspade.com
Also there is a small detail: Assume that you stop the garbage collector by calling collectgarbage("stop"). If you call collectgarbage() to perform a full garbage-collection cycle, garbage collection starts again.