bUseVirtualCores
bUseVirtualCores
#Overview
name: bUseVirtualCores
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 1
C++ source file.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseEngine.ini:1976, section: [DevOptions.Shaders]
- INI Section:
DevOptions.Shaders
- Raw value:
False
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp:5940
Scope (from outer to inner):
file
function void FShaderCompilingManager::CalculateNumberOfCompilingThreads
Source code excerpt:
NumShaderCompilingThreads = FMath::RoundToInt(NumSCWs);
bool bUseVirtualCores = true;
GConfig->GetBool(TEXT("DevOptions.Shaders"), TEXT("bUseVirtualCores"), bUseVirtualCores, GEngineIni);
uint32 MaxNumCoresToUse = bUseVirtualCores ? NumVirtualCores : NumberOfCores;
NumShaderCompilingThreads = FMath::Clamp<uint32>(NumShaderCompilingThreads, 1, MaxNumCoresToUse - 1);
NumShaderCompilingThreadsDuringGame = FMath::Min<int32>(NumShaderCompilingThreads, NumShaderCompilingThreadsDuringGame);
}
}
else if (bForceUseSCWMemoryPressureLimits)
{