fx.PruneEmittersOnCookByDetailMode

fx.PruneEmittersOnCookByDetailMode

#Overview

name: fx.PruneEmittersOnCookByDetailMode

The value of this variable can be defined or overridden in .ini config files. 1 .ini config file referencing this setting variable.

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

It is referenced in 2 C++ source files.

#Summary

#Setting Variables

#References In INI files

Location: <Workspace>/Projects/Lyra/Config/DefaultDeviceProfiles.ini:53, section: [Mobile DeviceProfile]

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Particles/ParticleComponents.cpp:206

Scope: file

Source code excerpt:


static TAutoConsoleVariable<float> CVarPruneEmittersOnCookByDetailMode(
	TEXT("fx.PruneEmittersOnCookByDetailMode"),
	0,
	TEXT("Whether to eliminate all emitters that don't match the detail mode.\n")
	TEXT("This will only work if scalability settings affecting detail mode can not be changed at runtime (depends on platform).\n"),
	ECVF_ReadOnly);

float GFXLWCTileRecache = 2;

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Particles/ParticleComponents.cpp:2783

Scope (from outer to inner):

file
function     void UParticleSystem::Serialize

Source code excerpt:

			// if we don't prune, we assume all detail modes
			int32 CVarDoPrune = 0;
			if (DeviceProfile->GetConsolidatedCVarValue(TEXT("fx.PruneEmittersOnCookByDetailMode"), CVarDoPrune) && CVarDoPrune == 1)
			{
				// get the detail mode from the device platform ini; if it's not there, we assume all detail modes
				int32 CVarDetailMode = PDM_DefaultValue;
				if (DeviceProfile->GetConsolidatedCVarValue(TEXT("r.DetailMode"), CVarDetailMode))
				{
					CookTargetPlatformDetailModeMask = (1 << CVarDetailMode);