summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-01 10:59:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-02 23:19:38 +0200
commitaaa3a04577a7d4633ef0eb9eb7dc2aa33db0d0eb (patch)
treed83709d246b390c7279720105f2269fb2b373259 /logic
parent81d11949122c63feb14e6595fc59e49cd264c89e (diff)
compat/timer-resolution: use undocumented windows API
Unlike timeBeginPeriod in winmm, this one sets the timer resolution for the calling process, only.
Diffstat (limited to 'logic')
-rw-r--r--logic/tracker.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 3ba81af7..7411d3b4 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -14,6 +14,7 @@
#include "compat/sleep.hpp"
#include "compat/util.hpp"
+#include "compat/timer-resolution.hpp"
#include "tracker.h"
@@ -376,6 +377,8 @@ void Tracker::run()
{
setPriority(QThread::HighPriority);
+ timer_resolution res(1);
+
{
static constexpr const char* posechannels[6] = { "TX", "TY", "TZ", "Yaw", "Pitch", "Roll" };
static constexpr const char* datachannels[5] = { "dt", "raw", "corrected", "filtered", "mapped" };