gc.CreateGCClusters
gc.CreateGCClusters
#Overview
name: gc.CreateGCClusters
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
If true, the engine will attempt to create clusters of objects for better garbage collection performance.
It is referenced in 2
C++ source files.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseEngine.ini:1527, section: [/Script/Engine.GarbageCollectionSettings]
- INI Section:
/Script/Engine.GarbageCollectionSettings
- Raw value:
True
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectClusters.cpp:23
Scope: file
Source code excerpt:
int32 GCreateGCClusters = 1;
static FAutoConsoleVariableRef CCreateGCClusters(
TEXT("gc.CreateGCClusters"),
GCreateGCClusters,
TEXT("If true, the engine will attempt to create clusters of objects for better garbage collection performance."),
ECVF_Default
);
int32 GAssetClustreringEnabled = 1;
#Loc: <Workspace>/Engine/Source/Runtime/CoreUObject/Private/UObject/GarbageCollection.cpp:5445
Scope (from outer to inner):
file
namespace UE::GC
namespace UE::GC
function void PreCollectGarbageImpl
Source code excerpt:
check(!GObjPurgeIsRequired);
// This can happen if someone disables clusters from the console (gc.CreateGCClusters)
if (!GCreateGCClusters && GUObjectClusters.GetNumAllocatedClusters())
{
GUObjectClusters.DissolveClusters(true);
}
#if VERIFY_DISREGARD_GC_ASSUMPTIONS