Run the Lua GC a little more aggresively

custom
jacqueline 7 months ago
parent 825728af23
commit 222465d31b
  1. 2
      src/tangara/lua/lua_thread.cpp

@ -67,6 +67,8 @@ auto LuaThread::Start(system_fsm::ServiceLocator& services) -> LuaThread* {
luaL_openlibs(state); luaL_openlibs(state);
lua_atpanic(state, lua_panic); lua_atpanic(state, lua_panic);
lua_gc(state, LUA_GCSETPAUSE, 120);
return new LuaThread(alloc, state); return new LuaThread(alloc, state);
} }

Loading…
Cancel
Save