37 #define OSVR_HAVE_LOWLATENCY_CODE
38 static const UINT TIMER_PERIOD = 1;
40 struct LowLatency::Impl {
41 bool beginSucceeded =
false;
48 LowLatency::LowLatency() : m_impl(new Impl) {
49 auto result = timeBeginPeriod(TIMER_PERIOD);
50 if (TIMERR_NOERROR == result) {
51 m_impl->beginSucceeded =
true;
56 LowLatency::LowLatency() { timeBeginPeriod(TIMER_PERIOD); }
57 LowLatency::~LowLatency() {
60 timeEndPeriod(TIMER_PERIOD);
64 #ifndef OSVR_HAVE_LOWLATENCY_CODE
67 LowLatency::LowLatency() {}
68 LowLatency::~LowLatency() {}
Header for an RAII object defining platform-specific actions to take to enter/exit a "low-latency" sy...