tweak lua GC (once again)

fixes OOM with extreme automation in HP/LP.
This commit is contained in:
Robin Gareus 2016-08-26 01:18:48 +02:00
parent 07fa803aa1
commit c9f0657c86

View File

@ -83,7 +83,8 @@ LuaState::collect_garbage_step () {
void
LuaState::tweak_rt_gc () {
//lua_gc (L, LUA_GCSETPAUSE, 20);
/* GC runs same speed as memory allocation */
lua_gc (L, LUA_GCSETPAUSE, 100);
lua_gc (L, LUA_GCSETSTEPMUL, 100);
}