r.MeshDrawCommands.DynamicInstancing

r.MeshDrawCommands.DynamicInstancing

#Overview

name: r.MeshDrawCommands.DynamicInstancing

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

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/SceneRendering.cpp:155

Scope: file

Source code excerpt:


static TAutoConsoleVariable<int32> CVarMeshDrawCommandsDynamicInstancing(
	TEXT("r.MeshDrawCommands.DynamicInstancing"),
	1,
	TEXT("Whether to dynamically combine multiple compatible visible Mesh Draw Commands into one instanced draw on vertex factories that support it."),
	ECVF_RenderThreadSafe);

bool IsDynamicInstancingEnabled(ERHIFeatureLevel::Type FeatureLevel)
{