With a Razer gaming mouse, moving the mouse results in significant lag (like the cursor will continue moving for a second after I've stopped). If I keep the mouse still and just click the button, there is no noticeable lag.
This suggests to me that (because it is a gaming mouse) the mouse is sending events faster than they are being processed, creating a blocked queue of events which can take seconds to finish being processed after incoming events have finished.
2 possible solutions I can think of:
Improve processing performance to reduce the likelihood of queue buildup (this probably requires 1ms or under processing times).
Figure out a way to discard some events or clear the event queue when a buildup happens.
With a Razer gaming mouse, moving the mouse results in significant lag (like the cursor will continue moving for a second after I've stopped). If I keep the mouse still and just click the button, there is no noticeable lag.
This suggests to me that (because it is a gaming mouse) the mouse is sending events faster than they are being processed, creating a blocked queue of events which can take seconds to finish being processed after incoming events have finished.
2 possible solutions I can think of: