MCPcopy Create free account
hub / github.com/LibreVR/Revive / CompositorBase

Method CompositorBase

Revive/CompositorBase.cpp:49–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49CompositorBase::CompositorBase()
50 : m_ChainCount(0)
51 , m_MirrorTexture(nullptr)
52 , m_OverlayCount(0)
53 , m_ActiveOverlays()
54 , m_Timeout(100)
55 , m_TimingMode(vr::VRCompositorTimingMode_Explicit_ApplicationPerformsPostPresentHandoff)
56#if MICROPROFILE_ENABLED
57 , m_ProfileTexture()
58#endif
59{
60 // We want to handle all graphics tasks explicitly instead of implicitly letting WaitGetPoses execute them
61 vr::VRCompositor()->SetExplicitTimingMode(m_TimingMode);
62
63 // Set the timeout based on the display frequency
64 m_Timeout = (DWORD)ceilf(1000.0f / vr::VRSystem()->GetFloatTrackedDeviceProperty(vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_DisplayFrequency_Float));
65}
66
67CompositorBase::~CompositorBase()
68{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected