r.SkeletalMeshLODRadiusScale
r.SkeletalMeshLODRadiusScale
#Overview
name: r.SkeletalMeshLODRadiusScale
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Scale factor for the screen radius used in computing discrete LOD for skeletal meshes. (0.25-1)
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/HAL/ConsoleManager.cpp:4070
Scope: file
Source code excerpt:
static TAutoConsoleVariable<float> CVarSkeletalMeshLODRadiusScale(
TEXT("r.SkeletalMeshLODRadiusScale"),
1.0f,
TEXT("Scale factor for the screen radius used in computing discrete LOD for skeletal meshes. (0.25-1)"),
ECVF_Scalability | ECVF_RenderThreadSafe);
static TAutoConsoleVariable<int32> CVarPreTileTextures(
TEXT("r.PreTileTextures"),
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/SkeletalRender.cpp:124
Scope (from outer to inner):
file
function void FSkeletalMeshObject::UpdateMinDesiredLODLevel
Source code excerpt:
}
static const auto* SkeletalMeshLODRadiusScale = IConsoleManager::Get().FindTConsoleVariableDataFloat(TEXT("r.SkeletalMeshLODRadiusScale"));
float LODScale = FMath::Clamp(SkeletalMeshLODRadiusScale->GetValueOnRenderThread(), 0.25f, 1.0f);
const float ScreenRadiusSquared = ComputeBoundsScreenRadiusSquared(Bounds.Origin, Bounds.SphereRadius, *View) * LODScale * LODScale;
checkf( SkeletalMeshLODInfo.Num() == SkeletalMeshRenderData->LODRenderData.Num(), TEXT("Mismatched LOD arrays. SkeletalMeshLODInfo.Num() = %d, SkeletalMeshRenderData->LODRenderData.Num() = %d"), SkeletalMeshLODInfo.Num(), SkeletalMeshRenderData->LODRenderData.Num());