r.ForceSceneHasDecals
r.ForceSceneHasDecals
#Overview
name: r.ForceSceneHasDecals
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Whether to always assume that scene has decals, so we don\'t switch depth state conditionally. This can significantly reduce total number of PSOs at a minor GPU cost.
It is referenced in 1
C++ source file.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/SceneVisibility.cpp:205
Scope: file
Source code excerpt:
static int32 GForceSceneHasDecals = 0;
static FAutoConsoleVariableRef CVarForceSceneHasDecals(
TEXT("r.ForceSceneHasDecals"),
GForceSceneHasDecals,
TEXT("Whether to always assume that scene has decals, so we don't switch depth state conditionally. This can significantly reduce total number of PSOs at a minor GPU cost."),
ECVF_RenderThreadSafe
);
static float GCameraCutTranslationThreshold = 10000.0f;