tweak lua GC (once again)
fixes OOM with extreme automation in HP/LP.
This commit is contained in:
parent
07fa803aa1
commit
c9f0657c86
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user