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

Preserve event timestamps in X11 input driver #1702

Merged

Conversation

geefr
Copy link
Contributor

@geefr geefr commented Jun 8, 2018

The X11 XKeyEvent structure (and others) include a timestamp
field, with 1ms resolution.
This was previously ignored causing the input timestamps to be
set to the middle of each frame.
If the timestamps are passed through then the event timestamps are
not coupled to the framerate and the polling issues are resolved.

So far these changes have been tested on Linux Mint, for IPAC, JPAC, and keyboard. No issues have been identified (and several quads have been achieved without any of the previously noted polling issues)

The X11 XKeyEvent structure (and others) include a timestamp
field, with 1ms resolution.
This was previously ignored causing the input timestamps to be
set to the middle of each frame.
If the timestamps are passed through then the event timestamps are
not coupled to the framerate and the polling issues are resolved.
@tertu-m tertu-m merged commit 9bd2770 into stepmania:5_1-new Jun 9, 2018
@RodentVienna
Copy link
Contributor

You write these changes have been tested on Linux Mint, for IPAC, JPAC, and keyboard. I have an SMX Platform, what would it take to test for these as well?

@geefr
Copy link
Contributor Author

geefr commented Jun 10, 2018

This is X11 only, so essentially Linux only (I assume the OSX build doesn't use X11 for input, but if someone built on freebsd/similar it probably would)

For the SMX platform you'll need to confirm whether it's using the X11 input driver. I would expect SMX to be registered as a joystick by the system, so would use one of the other input drivers.

@geefr geefr deleted the X11-input-driver-preserve-timestamps-2 branch March 9, 2021 18:13
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 this pull request may close these issues.

None yet

4 participants