Disable auto-GC every 60 ticks in game
This commit is contained in:
@@ -245,7 +245,7 @@ void ScriptingService::Update()
|
|||||||
PROFILE_CPU_NAMED("Scripting::Update");
|
PROFILE_CPU_NAMED("Scripting::Update");
|
||||||
INVOKE_EVENT(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
|
// Force GC to run in background periodically to avoid large blocking collections causing hitches
|
||||||
if (Time::Update.TicksCount % 60 == 0)
|
if (Time::Update.TicksCount % 60 == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user