grass.GrassMap.MaxComponentsStreaming

grass.GrassMap.MaxComponentsStreaming

#Overview

name: grass.GrassMap.MaxComponentsStreaming

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/Landscape/Private/LandscapeGrassMapsBuilder.cpp:56

Scope: file

Source code excerpt:

static int32 GGrassMapMaxComponentsStreaming = 1;
static FAutoConsoleVariableRef CVarGrassMapMaxComponentsStreaming(
	TEXT("grass.GrassMap.MaxComponentsStreaming"),
	GGrassMapMaxComponentsStreaming,
	TEXT("How many landscape components can be streaming their textures at once for grass map renders, when using amortized runtime generation."));

// Rendering readback takes ~3 frames on average to complete, while streaming usually takes 1 frame.
// By setting rendering limit higher in editor we can achieve the same average throughput for both streaming and rendering at 1 per frame.
#if WITH_EDITOR