r.EnableStereoEmulation
r.EnableStereoEmulation
#Overview
name: r.EnableStereoEmulation
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Emulate stereo rendering
It is referenced in 1
C++ source file.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp:3816
Scope (from outer to inner):
file
function bool UEngine::InitializeHMDDevice
Source code excerpt:
if (!IsRunningCommandlet())
{
static TAutoConsoleVariable<int32> CVarEmulateStereo(TEXT("r.EnableStereoEmulation"), 0, TEXT("Emulate stereo rendering"), ECVF_ReadOnly);
if (FParse::Param(FCommandLine::Get(), TEXT("emulatestereo")) || CVarEmulateStereo.GetValueOnAnyThread() != 0)
{
TSharedPtr<FFakeStereoRenderingDevice, ESPMode::ThreadSafe> FakeStereoDevice(new FFakeStereoRenderingDevice(GSystemResolution.ResX / 2, GSystemResolution.ResY));
StereoRenderingDevice = FakeStereoDevice;
}
// No reason to connect an HMD on a dedicated server. Also fixes dedicated servers stealing the oculus connection.