This potentially reduces lag and makes the input device initialization faster under CPU load.
Signed-off-by: Kai Krakow kai@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;