Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pointer lag #24

Closed
Dreamsorcerer opened this issue May 16, 2021 · 1 comment · Fixed by #25
Closed

Pointer lag #24

Dreamsorcerer opened this issue May 16, 2021 · 1 comment · Fixed by #25

Comments

@Dreamsorcerer
Copy link
Collaborator

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:

  1. Improve processing performance to reduce the likelihood of queue buildup (this probably requires 1ms or under processing times).
  2. Figure out a way to discard some events or clear the event queue when a buildup happens.
@Dreamsorcerer
Copy link
Collaborator Author

This is mostly fixed by #27. There is still occasional noticeable lag, but it's certainly usable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant