android/android-xr-unity-package

Failed to get Display Refresh Rate Values

Opened this issue · 1 comments

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.

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?