android / android/android-xr-unity-package

Failed to get Display Refresh Rate Values

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
94
Forks
17
PR merge metrics
No merged PRs in 30d

Description

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](https://registry.khronos.org/OpenXR/specs/1.0/man/html/xrEnumerateDisplayRefreshRatesFB.html),
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.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the DisplayRefreshRate Sample through XRInstanceManagerApi and XrDisplayRefreshRate_getDisplayRefreshRateInfo in the Android XR Extensions for Unity 0.9.0 integration. Compare the returned array handling with the xrEnumerateDisplayRefreshRatesFB specification and verify it on devices with different refresh-rate capabilities. Done means the API returns the device-supported values rather than a zero-filled fixed-size result.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp, unity
Domain
ar-vr-xr, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.