I was thinking about how they must have a routine that’s constantly taking mouse input, buffering history, and running some algorithm to determine when user input is a mouse “shake”.
And how many features like this add up to eat up a nontrivial amount of resources.
In some places there's no room left for unnecessary abstractions, I can imagine most of the code touching mouse / cursor handling is in that category.
Looks like it's measuring something like number of direction changes in relation to distance traveled; ignoring the y axis completely.
Source: https://retrocomputing.stackexchange.com/questions/11533/why...
Other possibility, do you have a gaming mouse with 1000Hz polling rate configured?
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.