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

Obtain/set headset refresh rate #78

Closed
BastiaanOlij opened this issue Aug 19, 2021 · 1 comment
Closed

Obtain/set headset refresh rate #78

BastiaanOlij opened this issue Aug 19, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@BastiaanOlij
Copy link
Member

Different headsets run at different refresh rates which is a problem if we don't know about it because we want to keep our physics update rate in sync with our headset as best we can.

Unfortunately OpenXR does not expose this in the core specification but Facebook did provide a set of extensions:
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_display_refresh_rate

Here we can enumerate a list of framerates supported by the headset, get its current setting and change it (the Quest 2 has two options so it can be compatible with the Quest 1).

Unfortunately seeing this is an extension we can't guarantee this feature is available. If not available we'll need to return a good default value.

@BastiaanOlij BastiaanOlij added enhancement New feature or request good first issue Good for newcomers labels Aug 19, 2021
@BastiaanOlij BastiaanOlij added this to the 1.1.0 milestone Aug 19, 2021
@BastiaanOlij
Copy link
Member Author

This was implementing through #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant