vm.InstancesPerChunk
vm.InstancesPerChunk
#Overview
name: vm.InstancesPerChunk
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Number of instances per VM chunk. (default=128) \n
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/VectorVM/Private/VectorVM.cpp:198
Scope: file
Source code excerpt:
static int32 GParallelVVMInstancesPerChunk = 128;
static FAutoConsoleVariableRef CVarParallelVVMInstancesPerChunk(
TEXT("vm.InstancesPerChunk"),
GParallelVVMInstancesPerChunk,
TEXT("Number of instances per VM chunk. (default=128) \n"),
ECVF_ReadOnly
);
static int32 GVVMChunkSizeInBytes = 32768;
#Loc: <Workspace>/Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraScriptExecutionContext.cpp:343
Scope (from outer to inner):
file
function bool FNiagaraScriptExecutionContextBase::ExecuteInternal_Legacy
Source code excerpt:
FVectorVMSerializeState UESerializeState = { };
#if VECTORVM_SUPPORTS_SERIALIZATION
static const IConsoleVariable* CVarInstancesPerChunk = IConsoleManager::Get().FindConsoleVariable(TEXT("vm.InstancesPerChunk"));
int32 NumParallelInstancesPerChunk = CVarInstancesPerChunk ? CVarInstancesPerChunk->GetInt() : 128;
UESerializeState.ReallocFn = VVMRealloc;
UESerializeState.FreeFn = VVMFree;
UESerializeState.NumInstances = NumInstances;
UESerializeState.NumTempRegisters = ExecData.NumTempRegisters;