From ab47eac174db02710a7fa6c194e00c31cef755a4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 8 Jul 2015 05:38:47 +0200 Subject: try to fix FSX stutter while FSX has focus As reported in #174 FSX has issues with calldispatch in steam edition. Attempt setting high process priority. --- ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftnoir_protocol_sc') diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp index 7d4e09f9..52db14f8 100644 --- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp +++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp @@ -41,6 +41,9 @@ FTNoIR_Protocol::~FTNoIR_Protocol() void FTNoIR_Protocol::run() { + (void) SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL); + (void) SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST); + HANDLE event = CreateEvent(NULL, FALSE, FALSE, nullptr); if (event == nullptr) -- cgit v1.2.3