diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-06 08:31:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-06 08:31:48 +0200 |
commit | 68c8278b25b417c21dfbb0e3974044a36dfc151e (patch) | |
tree | 8a8bcae27ced5e5e4ef247ad64b55f319e892846 /ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | |
parent | 555d0555e990a99c2061570dcebd0d868f1334b8 (diff) |
simconnect: don't set affinity, only meant for trackers
Diffstat (limited to 'ftnoir_protocol_sc/ftnoir_protocol_sc.cpp')
-rw-r--r-- | ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp index c9b0541a..c0e2fc02 100644 --- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp +++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp @@ -28,7 +28,6 @@ ********************************************************************************/ #include "ftnoir_protocol_sc.h" #include "opentrack/plugin-api.hpp" -#include "opentrack/thread.hpp" FTNoIR_Protocol::FTNoIR_Protocol() : should_stop(false), hSimConnect(nullptr) { @@ -42,8 +41,6 @@ FTNoIR_Protocol::~FTNoIR_Protocol() void FTNoIR_Protocol::run() { - Affinity thr; - (void) timeBeginPeriod(1); while (!should_stop) @@ -56,7 +53,7 @@ void FTNoIR_Protocol::run() { if (FAILED(simconnect_calldispatch(hSimConnect, processNextSimconnectEvent, reinterpret_cast<void*>(this)))) break; - Sleep(3); + Sleep(16); } (void) simconnect_close(hSimConnect); |