Failed to get Display Refresh Rate Values

未关闭
#2 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, csharp, unity

调研方向

首先,在 Android XR Extensions for Unity 0.9.0 集成中,通过 XRInstanceManagerApi 和 XrDisplayRefreshRate_getDisplayRefreshRateInfo 跟踪 DisplayRefreshRate Sample。将返回数组的处理方式与 xrEnumerateDisplayRefreshRatesFB 规范进行比较,并在具有不同刷新率能力的设备上进行验证。当 API 返回设备支持的值,而不是填充为零的固定大小结果时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
C#
星标
95
派生
14
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

android/android-xr-unity-package 的其他 Issue

查看 android/android-xr-unity-package 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。