[PATCH 2/2] dinput: Raise priority of device threads.
Kai Krakow
kai at kaishome.de
Fri Dec 7 13:00:35 CST 2018
This potentially reduces lag and makes the input device initialization
faster under CPU load.
Signed-off-by: Kai Krakow <kai at kaishome.de>
---
dlls/dinput/dinput_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c
index 6ed764e7485..8b6f393cd45 100644
--- a/dlls/dinput/dinput_main.c
+++ b/dlls/dinput/dinput_main.c
@@ -1815,6 +1815,7 @@ static BOOL check_hook_thread(void)
}
else if (list_empty(&direct_input_list) && hook_thread)
{
+ SetThreadPriority(hook_thread, THREAD_PRIORITY_TIME_CRITICAL);
DWORD tid = hook_thread_id;
hook_thread_id = 0;
--
2.19.2
More information about the wine-devel
mailing list