r.Nanite.CoarseMeshStreaming

r.Nanite.CoarseMeshStreaming

#Overview

name: r.Nanite.CoarseMeshStreaming

This variable is created as a Console Variable (cvar).

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/Engine/Private/ContentStreaming.cpp:39

Scope: file

Source code excerpt:

static int32 GNaniteCoarseMeshStreamingEnabled = 0;
static FAutoConsoleVariableRef CVarNaniteCoarseMeshStreaming(
	TEXT("r.Nanite.CoarseMeshStreaming"),
	GNaniteCoarseMeshStreamingEnabled,
	TEXT("Generates 2 Nanite coarse mesh LODs and dynamically streams in the higher quality LOD depending on TLAS usage of the proxy.\n"),
	ECVF_ReadOnly | ECVF_RenderThreadSafe);

/** Collection of views that need to be taken into account for streaming. */
TArray<FStreamingViewInfo> IStreamingManager::CurrentViewInfos;

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/StaticMesh.cpp:2545

Scope (from outer to inner):

file
function     bool UStaticMesh::GetEnableLODStreaming

Source code excerpt:

	const bool bMeshStreamingDisabled = VarMeshStreaming && VarMeshStreaming->GetInt() == 0;

	static auto* VarNaniteCoarseMeshStreaming = IConsoleManager::Get().FindConsoleVariable(TEXT("r.Nanite.CoarseMeshStreaming"));
	const bool bNaniteCoareMeshStreamingDisabled = VarNaniteCoarseMeshStreaming && VarNaniteCoarseMeshStreaming->GetInt() == 0;

	if (bMeshStreamingDisabled && bNaniteCoareMeshStreamingDisabled)
	{
		return false;