vm.OptimizeVMByteCode
vm.OptimizeVMByteCode
#Overview
name: vm.OptimizeVMByteCode
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
If > 0 vector VM code optimization will be enabled at runtime.\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:222
Scope: file
Source code excerpt:
static int32 GbOptimizeVMByteCode = 1;
static FAutoConsoleVariableRef CVarbOptimizeVMByteCode(
TEXT("vm.OptimizeVMByteCode"),
GbOptimizeVMByteCode,
TEXT("If > 0 vector VM code optimization will be enabled at runtime.\n"),
ECVF_Default
);
static int32 GbFreeUnoptimizedVMByteCode = 1;
#Loc: <Workspace>/Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraScript.cpp:1727
Scope (from outer to inner):
file
function bool UNiagaraScript::ShouldOptimizeByteCode
Source code excerpt:
bool UNiagaraScript::ShouldOptimizeByteCode() const
{
static const IConsoleVariable* CVarOptimizeVMCode = IConsoleManager::Get().FindConsoleVariable(TEXT("vm.OptimizeVMByteCode"));
if (!CVarOptimizeVMCode || CVarOptimizeVMCode->GetInt() == 0 )
{
return false;
}
return CachedScriptVM.IsValid() && CachedScriptVM.ByteCode.HasByteCode() && !CachedScriptVM.OptimizedByteCode.HasByteCode();