On Thu Feb 20 21:52:18 2025 +0000, William Horvath wrote:
Due to the `timeout_t diff = (-timeout->when - monotonic_time + 9999) / 10000;` in `get_next_timeout()`, the `SleepEx(1, TRUE)` calls can last longer due to this `monotonic_time` variable being updated by other threads' server calls, which puts it into the future by up to 1ms. That makes the sleep calls last "unexpectedly" longer depending on how fast you move the mouse, and not just because of increased load.
So it is making Sleep() not adding up to extra 1ms but it can sleep, e. g., 10ms instead?