r.RHIThread.Enable
r.RHIThread.Enable
#Overview
name: r.RHIThread.Enable
This variable is created as a Console Variable (cvar).
- type:
Cmd
- help:
Enables/disabled the RHI Thread and determine if the RHI work runs on a dedicated thread or not.\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/RenderCore/Private/RenderingThread.cpp:1673
Scope: file
Source code excerpt:
static FAutoConsoleCommand CVarRHIThreadEnable(
TEXT("r.RHIThread.Enable"),
TEXT("Enables/disabled the RHI Thread and determine if the RHI work runs on a dedicated thread or not.\n"),
FConsoleCommandWithArgsDelegate::CreateStatic(&HandleRHIThreadEnableChanged)
);
inline ERenderCommandPipeMode GetValidatedRenderCommandPipeMode(int32 CVarValue)
{
#Loc: <Workspace>/Engine/Source/Runtime/RHI/Private/DynamicRHI.cpp:493
Scope (from outer to inner):
file
function void FDynamicRHI::EnableIdealGPUCaptureOptions
Source code excerpt:
static IConsoleVariable* RHICmdBypassVar = IConsoleManager::Get().FindConsoleVariable(TEXT("r.rhicmdbypass"));
static IConsoleVariable* ShowMaterialDrawEventVar = IConsoleManager::Get().FindConsoleVariable(TEXT("r.ShowMaterialDrawEvents"));
static IConsoleObject* RHIThreadEnableObj = IConsoleManager::Get().FindConsoleObject(TEXT("r.RHIThread.Enable"));
static IConsoleCommand* RHIThreadEnableCommand = RHIThreadEnableObj ? RHIThreadEnableObj->AsCommand() : nullptr;
const bool bShouldEnableDrawEvents = bEnabled;
const bool bShouldEnableMaterialDrawEvents = bEnabled;
const bool bShouldEnableRHIThread = !bEnabled;
const bool bShouldRHICmdBypass = bEnabled;