summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-08 05:38:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-08 05:38:47 +0200
commitab47eac174db02710a7fa6c194e00c31cef755a4 (patch)
tree78e33d7e35630df1e29bacc20b0d2520cde7b705
parentdaef1862f1ef7a1332253ee427b9726316ba6328 (diff)
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.
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.cpp3
1 files changed, 3 insertions, 0 deletions
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)