Rémi Bernon (@rbernon) commented about dlls/win32u/message.c:
return ret; }
+/* 1ms-resolution tick for throttling driver event checks */ +static inline DWORD get_millisecond_tick(void) +{ + LARGE_INTEGER counter; + NtQueryPerformanceCounter( &counter, NULL ); + return counter.LowPart / 10000; +} +
Fwiw I think we could increase the check frequency a bit, as there's indeed now some higher polling rate input devices out there. Something like this maybe? ```suggestion:-7+0 /* get driver event check time for throttling */ static inline DWORD get_driver_check_time(void) { LARGE_INTEGER counter, freq; NtQueryPerformanceCounter( &counter, &freq ); return counter.QuadPart * 8000 / freq.QuadPart; /* 8kHz */ } ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7005#note_90334