You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lua uses a garbage collector to free objects that are no longer referenced. By default, this collector is run internally whenever Lua decides to.
If you wish to disable it, you can call LuaState::disableGarbageCollector.
If you wish to call it manually, you can call LuaState::collectGarbage.
If you wish to re-enable it, you can call LuaState::enableGarbageCollector.
In VoidStorm, I have it disabled, and call it manually at the end of each frame, so that I can profile it.