From 222465d31b0ea579fff006f6966ac56595ede3bf Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 1 Oct 2024 14:15:33 +1000 Subject: [PATCH] Run the Lua GC a little more aggresively --- src/tangara/lua/lua_thread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tangara/lua/lua_thread.cpp b/src/tangara/lua/lua_thread.cpp index b3b46166..ed707e05 100644 --- a/src/tangara/lua/lua_thread.cpp +++ b/src/tangara/lua/lua_thread.cpp @@ -67,6 +67,8 @@ auto LuaThread::Start(system_fsm::ServiceLocator& services) -> LuaThread* { luaL_openlibs(state); lua_atpanic(state, lua_panic); + lua_gc(state, LUA_GCSETPAUSE, 120); + return new LuaThread(alloc, state); }