| 47 | } |
| 48 | |
| 49 | CompositorBase::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 | |
| 67 | CompositorBase::~CompositorBase() |
| 68 | { |
nothing calls this directly
no outgoing calls
no test coverage detected