| 569 | } |
| 570 | |
| 571 | void LuaEngine::setAutoGarbageCollection(bool autoGarbageColleciton) { |
| 572 | lua_gc(m_state, LUA_GCSTOP, autoGarbageColleciton ? 1 : 0); |
| 573 | } |
| 574 | |
| 575 | void LuaEngine::tuneAutoGarbageCollection(float pause, float stepMultiplier) { |
| 576 | lua_gc(m_state, LUA_GCSETPAUSE, round(pause * 100)); |