From 68c8278b25b417c21dfbb0e3974044a36dfc151e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 6 Jul 2015 08:31:48 +0200 Subject: simconnect: don't set affinity, only meant for trackers --- ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ftnoir_protocol_sc') 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(this)))) break; - Sleep(3); + Sleep(16); } (void) simconnect_close(hSimConnect); -- cgit v1.2.3