Skip to content

Commit 0a8ae1a

Browse files
authored
Merge branch 'development' into multithreading-settings
2 parents faf401c + 6ed5e0a commit 0a8ae1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Managers/LuaMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ namespace RTE {
11111111
g_ThreadMan.GetPriorityThreadPool().submit([luaState]() {
11121112
ZoneScopedN("Lua Garbage Collection");
11131113
std::lock_guard<std::recursive_mutex> lock(luaState->GetMutex());
1114-
lua_gc(luaState->GetLuaState(), LUA_GCSTEP, 30);
1114+
lua_gc(luaState->GetLuaState(), LUA_GCCOLLECT, 0); // we'd use GCSTEP but fuck lua it's trash
11151115
lua_gc(luaState->GetLuaState(), LUA_GCSTOP, 0);
11161116
})
11171117
);

0 commit comments

Comments
 (0)