3 ms·
> they must have a routine that’s constantly taking mouse input Possible but unlikely. Well-written desktop software never constantly taking input, it's sleepi
by Const-me 5y ago
> they must have a routine that’s constantly taking mouse input
Possible but unlikely. Well-written desktop software never constantly taking input, it's sleeping on OS kernel primitives like poll/epoll/IOCP/etc waiting for these inputs.
Operating systems don't generate mouse events at 1kHz unless you actually move the mouse.
- lilyball 5y ago“Constantly taking” is not the same thing as “constantly polling”. The ring buffer approach works identically in the event-driven approach, you just need to calculate the number of “skipped” ticks and zero them out in the ring buffer.