gc.ForceCollectGarbageEveryFrame
gc.ForceCollectGarbageEveryFrame is a console variable in Unreal Engine 5 (UE5). See what gc.ForceCollectGarbageEveryFrame does, its values, and how to use this cvar in the Unreal console below.
Category: Remaining · Namespace:
gcHelp
If set to 1, the engine will force GC each frame.
Usage
Unreal console (open with ~)
> gc.ForceCollectGarbageEveryFrame 1Console variables take a value. Replace 1 with the setting you need. Run it with no value to print the current one.
Related in gc
gc.CollectGarbageEveryFrameVargc.CreateGCClustersVargc.DumpPoolStatsCmdgc.DumpRefsToClusterCmdgc.FindStaleClustersCmdgc.FlushStreamingOnGCVargc.GarbageReferenceTrackingEnabledVargc.HistorySizeCmdgc.IncrementalBeginDestroyEnabledVargc.IncrementalGCTimePerFrameVargc.ListClustersCmdgc.LowMemory.IncrementalGCTimePerFrameVar