UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CoreSettings.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8
9#include "CoreSettings.generated.h"
10
12
16UCLASS(config=Engine, defaultconfig, meta=(DisplayName="Streaming"), MinimalAPI)
18{
20
21public:
22
24
25protected:
26
27 UPROPERTY(config, EditAnywhere, Category = PackageStreaming, meta = (
28 ConsoleVariable = "s.AsyncLoadingThreadEnabled", DisplayName = "Async Loading Thread Enabled",
29 ToolTip = "Enables separate thread for package streaming. Requires restart to take effect."))
31
32 UPROPERTY(config, EditAnywhere, Category = PackageStreaming, AdvancedDisplay, meta = (
33 ConsoleVariable = "s.WarnIfTimeLimitExceeded", DisplayName = "Warn If Time Limit Has Been Exceeded",
34 ToolTip = "Enables log warning if time limit for time-sliced package streaming has been exceeded."))
36
37 UPROPERTY(config, EditAnywhere, Category = PackageStreaming, AdvancedDisplay, meta = (
38 ConsoleVariable = "s.TimeLimitExceededMultiplier", DisplayName = "Time Limit Exceeded Warning Multiplier",
39 ToolTip = "Multiplier for time limit exceeded warning time threshold."))
41
42 UPROPERTY(config, EditAnywhere, Category = PackageStreaming, AdvancedDisplay, meta = (
43 ConsoleVariable = "s.TimeLimitExceededMinTime", DisplayName = "Minimum Time Limit For Time Limit Exceeded Warning",
46
47 UPROPERTY(config, EditAnywhere, Category = PackageStreaming, AdvancedDisplay, meta = (
48 ConsoleVariable = "s.MinBulkDataSizeForAsyncLoading", DisplayName = "Minimum Bulk Data Size For Async Loading",
51
52 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, meta = (
53 ConsoleVariable = "s.UseBackgroundLevelStreaming", DisplayName = "Use Background Level Streaming",
56
58 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
59 ConsoleVariable = "s.AsyncLoadingUseFullTimeLimit", DisplayName = "Async Loading Use Full Time Limit",
60 ToolTip = "Whether to use the entire time limit even if blocked on I/O."))
62
63 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
64 ConsoleVariable = "s.AsyncLoadingTimeLimit", DisplayName = "Async Loading Time Limit",
67
68 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
69 ConsoleVariable = "s.PriorityAsyncLoadingExtraTime", DisplayName = "Priority Async Loading Extra Time",
70 ToolTip = "Additional time to spend asynchronous loading during a high priority load."))
72
74 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
75 ConsoleVariable = "s.LevelStreamingActorsUpdateTimeLimit", DisplayName = "Actor Initialization Update Time Limit",
78
79 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
81 ToolTip = "Additional time to spend on actor registration steps during a high priority load."))
83
85 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
86 ConsoleVariable = "s.LevelStreamingComponentsRegistrationGranularity", DisplayName = "Components Registration Granularity",
89
91 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
92 ConsoleVariable = "s.LevelStreamingAddPrimitiveGranularity", DisplayName = "Added Primitive Granularity",
95
97 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
98 ConsoleVariable = "s.UnregisterComponentsTimeLimit", DisplayName = "Component Unregister Update Time Limit",
101
103 UPROPERTY(EditAnywhere, config, Category = LevelStreaming, AdvancedDisplay, meta = (
104 ConsoleVariable = "s.LevelStreamingComponentsUnregistrationGranularity", DisplayName = "Components Unregistration Granularity",
107
108 UPROPERTY(EditAnywhere, config, Category = General, meta = (
109 ConsoleVariable = "s.FlushStreamingOnExit", DisplayName = "Flush Streaming when exiting the application",
110 ToolTip = "If enabled, streaming will be flushed when exiting application, otherwise it will be cancelled."))
112
113 UPROPERTY(config, EditAnywhere, Category = "Deprecated Settings", meta = (
114 ConsoleVariable = "s.EventDrivenLoaderEnabled", DisplayName = "Use Event Driven Loader (disabling not recommended)",
115 ToolTip = "Enables the event driven loader in cooked builds (default). Disabling EDL will result in using deprecated loading path."))
117
118 //~ Begin UObject Interface
119 ENGINE_API virtual void PostInitProperties() override;
120
121 //~ End UObject Interface
122};
123
164
168UCLASS(config = Engine, defaultconfig, meta = (DisplayName = "Garbage Collection"), MinimalAPI)
170{
172
173public:
174
176
177protected:
178
179 UPROPERTY(EditAnywhere, config, Category = General, meta = (
180 ConsoleVariable = "gc.TimeBetweenPurgingPendingKillObjects", DisplayName = "Time Between Purging Pending Kill Objects",
181 ToolTip = "Time in seconds (game time) we should wait between purging object references to objects that are pending kill."))
183
184 UPROPERTY(EditAnywhere, config, Category = General, meta = (
185 ConsoleVariable = "gc.FlushStreamingOnGC", DisplayName = "Flush Streaming On GC",
186 ToolTip = "If enabled, streaming will be flushed each time garbage collection is triggered."))
188
189 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
190 ConsoleVariable = "gc.AllowParallelGC", DisplayName = "Allow Parallel GC",
191 ToolTip = "If enabled, garbage collection will use multiple threads."))
193
194 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
195 ConsoleVariable = "gc.IncrementalBeginDestroyEnabled", DisplayName = "Incremental BeginDestroy Enabled",
196 ToolTip = "If true, the engine will destroy objects incrementally using time limit each frame."))
198
199 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
200 ConsoleVariable = "gc.CreateGCClusters", DisplayName = "Create Garbage Collector UObject Clusters",
201 ToolTip = "If true, the engine will attempt to create clusters of objects for better garbage collection performance."))
203
204 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
205 ConsoleVariable = "gc.AssetClustreringEnabled", DisplayName = "Asset Clustering Enabled",
206 ToolTip = "Whether to allow asset files to create actor clusters for GC."))
208
209 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
210 ConsoleVariable = "gc.ActorClusteringEnabled", DisplayName = "Actor Clustering Enabled",
211 ToolTip = "Whether to allow levels to create actor clusters for GC."))
213
214 UPROPERTY(EditAnywhere, config, Category = Debug, meta = (
215 ConsoleVariable = "gc.VerifyUObjectsAreNotFGCObjects", DisplayName = "Verify UObjects Are Not FGCObjects",
216 ToolTip = "If true, the engine will throw a warning when it detects a UObject-derived class which also derives from FGCObject or any of its members is derived from FGCObject."))
218
219 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
220 ConsoleVariable = "gc.GarbageEliminationEnabled", DisplayName = "Garbage Elimination Enabled",
221 ToolTip = "If true, objects marked as Garbage will be automatically nulled and destroyed by Garbage Collector."))
223
224 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
225 ConsoleVariable = "gc.DumpObjectCountsToLogWhenMaxObjectLimitExceeded", DisplayName = "Log UObject counts when UObject limit has been exceeded",
226 ToolTip = "If true, the engine will dump UObject counts when maximum number of UObjects limit has been exceeded."))
228
229 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
230 ConsoleVariable = "gc.MinGCClusterSize", DisplayName = "Minimum GC Cluster size",
231 ToolTip = "Minimum GC cluster size."))
233
234 UPROPERTY(EditAnywhere, config, Category = General, meta = (
235 ConsoleVariable = "gc.NumRetriesBeforeForcingGC", DisplayName = "Number Of Retries Before Forcing GC",
238
239 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
240 ConsoleVariable = "gc.MaxObjectsNotConsideredByGC", DisplayName = "Maximum Object Count Not Considered By GC",
242 int32 MaxObjectsNotConsideredByGC;
243
244 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
245 ConsoleVariable = "gc.MaxObjectsInGame", DisplayName = "Maximum number of UObjects that can exist in cooked game",
246 ToolTip = "Maximum number of UObjects that can exist in cooked game. Keep this as small as possible."))
248
249 UPROPERTY(EditAnywhere, config, Category = Optimization, meta = (
250 ConsoleVariable = "gc.MaxObjectsInEditor", DisplayName = "Maximum number of UObjects that can exist in the editor",
251 ToolTip = "Maximum number of UObjects that can exist in the editor game. Make sure this can hold enough objects for the editor and commadlets within reasonable limit."))
253
254 //~ Begin UObject Interface
255 ENGINE_API virtual void PostInitProperties() override;
256
257#if WITH_EDITOR
258 ENGINE_API virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
259#endif
260 //~ End UObject Interface
261};
EGLSurface EGLnsecsANDROID time
Definition AndroidOpenGLFunctions.h:9
GLenum GLuint GLint level
Definition AndroidOpenGLFunctions.h:46
#define register
Definition AndroidPlatformCompilerSetup.h:11
ENGINE_API int32 GLevelStreamingLowMemoryPendingPurgeCount
Definition CoreSettings.cpp:31
ENGINE_API int32 GUseUnifiedTimeBudgetForStreaming
Definition CoreSettings.cpp:12
ENGINE_API int32 GLevelStreamingComponentsUnregistrationGranularity
Definition CoreSettings.cpp:22
ENGINE_API float GPriorityLevelStreamingActorsUpdateExtraTime
Definition CoreSettings.cpp:18
ENGINE_API int32 GLevelStreamingAllowLevelRequestsWhileAsyncLoadingInMatch
Definition CoreSettings.cpp:27
ENGINE_API int32 GLevelStreamingForceVerifyLevelsGotRemovedByGC
Definition CoreSettings.cpp:29
ENGINE_API int32 GLevelStreamingAddPrimitiveGranularity
Definition CoreSettings.cpp:21
ENGINE_API int32 GLevelStreamingRouteActorEndPlayForRemoveFromWorldGranularity
Definition CoreSettings.cpp:24
ENGINE_API float GPriorityAsyncLoadingExtraTime
Definition CoreSettings.cpp:16
ENGINE_API int32 GLevelStreamingComponentsRegistrationGranularity
Definition CoreSettings.cpp:20
ENGINE_API int32 GLevelStreamingForceGCAfterLevelStreamedOut
Definition CoreSettings.cpp:25
ENGINE_API int32 GLevelStreamingForceRouteActorInitializeNextFrame
Definition CoreSettings.cpp:30
ENGINE_API int32 GAsyncLoadingUseFullTimeLimit
Definition CoreSettings.cpp:15
ENGINE_API float GLevelStreamingActorsUpdateTimeLimit
Definition CoreSettings.cpp:17
ENGINE_API int32 GUseBackgroundLevelStreaming
Definition CoreSettings.cpp:13
ENGINE_API int32 GLevelStreamingMaxLevelRequestsAtOnceWhileInMatch
Definition CoreSettings.cpp:28
ENGINE_API int32 GLevelStreamingRouteActorInitializationGranularity
Definition CoreSettings.cpp:23
ENGINE_API float GAsyncLoadingTimeLimit
Definition CoreSettings.cpp:14
ENGINE_API int32 GLevelStreamingContinuouslyIncrementalGCWhileLevelsPendingPurge
Definition CoreSettings.cpp:26
ENGINE_API float GLevelStreamingUnregisterComponentsTimeLimit
Definition CoreSettings.cpp:19
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
@ General
Definition MaterialExpressionFunctionInput.h:41
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
@ Garbage
Garbage from logical point of view and should not be referenced. This flag is mirrored in EObjectFlag...
#define UCLASS(...)
Definition ObjectMacros.h:776
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
uint32 Size
Definition VulkanMemory.cpp:4034
if(Failed) console_printf("Failed.\n")
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Engine.Build.cs:7
Definition GCObject.h:128
Definition DeveloperSettings.h:24
Definition CoreSettings.h:170
UPROPERTY(EditAnywhere, config, Category=General, meta=(ConsoleVariable="gc.TimeBetweenPurgingPendingKillObjects", DisplayName="Time Between Purging Pending Kill Objects", ToolTip="Time in seconds (game time) we should wait between purging object references to objects that are pending kill.")) float TimeBetweenPurgingPendingKillObjects
Definition Object.h:95
Definition CoreSettings.h:18
UPROPERTY(config, EditAnywhere, Category=PackageStreaming, meta=(ConsoleVariable="s.AsyncLoadingThreadEnabled", DisplayName="Async Loading Thread Enabled", ToolTip="Enables separate thread for package streaming. Requires restart to take effect.")) uint32 AsyncLoadingThreadEnabled UPROPERTY(config, EditAnywhere, Category=PackageStreaming, AdvancedDisplay, meta=(ConsoleVariable="s.WarnIfTimeLimitExceeded", DisplayName="Warn If Time Limit Has Been Exceeded", ToolTip="Enables log warning if time limit for time-sliced package streaming has been exceeded.")) uint32 WarnIfTimeLimitExceeded UPROPERTY(config, EditAnywhere, Category=PackageStreaming, AdvancedDisplay, meta=(ConsoleVariable="s.TimeLimitExceededMultiplier", DisplayName="Time Limit Exceeded Warning Multiplier", ToolTip="Multiplier for time limit exceeded warning time threshold.")) float TimeLimitExceededMultiplier
Definition AsyncRegisterLevelContext.cpp:16
Definition UnrealType.h:6865