Skip to content

Failed to get Display Refresh Rate Values #2

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

Open
JRChen-Dev opened this issue Jan 17, 2025 · 1 comment
Open

Failed to get Display Refresh Rate Values #2

JRChen-Dev opened this issue Jan 17, 2025 · 1 comment

Comments

@JRChen-Dev
Copy link

We tried running the DisplayRefreshRate Sample on different devices, but we found that we couldn’t retrieve the DisplayRefreshRate.

Currently, we suspect that unity_openxr_android requests a fixed number (size = 4) of DisplayRefreshRates. If the device's provided DisplayRefreshRate doesn’t match the expected format, it returns false.

However, according to the specification,
xrEnumerateDisplayRefreshRatesFB should return values based on the device's capacity.

This seems to be a bug in unity_openxr_android. Could you check if this issue will be fixed in a future update?

Unity Version: 6000.0.25f1
Android XR Extensions for Unity: 0.9.0

  1. We have confirmed that XRInstanceManagerApi is successfully registered.
  2. XrDisplayRefreshRate_getDisplayRefreshRateInfo returns a size 4 array with all values set to 0.
@jankleinert
Copy link
Contributor

Hi @JRChen-Dev, when you refer to running this on different devices, could you specify what devices you mean? Are these devices running Android XR?

salarkhan-google pushed a commit that referenced this issue Mar 7, 2025
Update shader and camera clear flags.
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

2 participants