Skip to content

Commit 97b4a63

Browse files
committed
Reduced GC step size for extra perf
1 parent 8b446fa commit 97b4a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Managers/LuaMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ namespace RTE {
11011101
g_ThreadMan.GetPriorityThreadPool().submit([luaState]() {
11021102
ZoneScopedN("Lua Garbage Collection");
11031103
std::lock_guard<std::recursive_mutex> lock(luaState->GetMutex());
1104-
lua_gc(luaState->GetLuaState(), LUA_GCSTEP, 100);
1104+
lua_gc(luaState->GetLuaState(), LUA_GCSTEP, 30);
11051105
lua_gc(luaState->GetLuaState(), LUA_GCSTOP, 0);
11061106
})
11071107
);

0 commit comments

Comments
 (0)