News for hackers. Stuff that matters.
Re:My £4 a month server can handle 4.2M requests a day by Const-me on Tuesday September 07, 2021 @08:18PM (#28451435)
> 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.

Re:My £4 a month server can handle 4.2M requests a day by lilyball on Wednesday September 08, 2021 @12:22AM (#28453006)
“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.