Disable auto-GC every 60 ticks in game

This commit is contained in:
Wojtek Figat
2025-08-11 19:00:38 +02:00
parent 80d19a002f
commit 1bedfd3adf

View File

@@ -245,7 +245,7 @@ void ScriptingService::Update()
PROFILE_CPU_NAMED("Scripting::Update");
INVOKE_EVENT(Update);
#ifdef USE_NETCORE
#if defined(USE_NETCORE) && !USE_EDITOR
// Force GC to run in background periodically to avoid large blocking collections causing hitches
if (Time::Update.TicksCount % 60 == 0)
{