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

Predicted pose updates eat JustChanged events #953

Open
maluoi opened this issue Apr 9, 2024 · 0 comments
Open

Predicted pose updates eat JustChanged events #953

maluoi opened this issue Apr 9, 2024 · 0 comments
Milestone

Comments

@maluoi
Copy link
Collaborator

maluoi commented Apr 9, 2024

Description

StereoKit queries input poses twice per frame, once at the start of the frame, and once right before rendering to get the predicted position of poses. This can help with reducing perceived latency for input devices by a good number of milliseconds.

Unfortunately, some input checks use the button_state_ enum, which tracks change over time, and this two-query implementation can eat "just changed" events if the new value happens on the first query.

Platform / Environment

Specific to OpenXR, not always consistent due to timing.

@maluoi maluoi added this to the v0.4 milestone Apr 25, 2024
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

No branches or pull requests

1 participant