Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Wontorres's avatar
Wontorres
Honored Guest
1 year ago
Solved

OpenXR's XR_FB_display_refresh_rate extension only returns 60Hz and 72Hz for Quest 2

Built OpenXR SDK 1.1.38 from source, using that for a native Android application using a custom engine. xrEnumerateDisplayRefreshRatesFB only returns 60 and 72 Hz, and trying to request 90Hz using xrRequestDisplayRefreshRateFB returns XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB

  • Wontorres's avatar
    Wontorres
    1 year ago

    I found a solution, it turns out the app was running on compatibility mode by default, and it was still treating the device as a Quest 1. I fixed it by setting minSdkVersion and targetSdkVersion to 32 (in both build.gradle and AndroidManifest.xml), and also to add the following to inside the application tag inside AndroidManifest.xml

    <meta-data
      android:name="com.oculus.intent.category.VR"
      android:value="vr_only"/>
    <meta-data
      android:name="com.oculus.supportedDevices"
      android:value="quest2|questpro|quest3"/>

    My app is targeting Quest 2 as a minimum, so the solution might need to be tweaked if you still need to target Quest 1. More info can be found here:
    https://developers.meta.com/horizon/documentation/native/android/mobile-native-manifest/

2 Replies

    • Wontorres's avatar
      Wontorres
      Honored Guest

      I found a solution, it turns out the app was running on compatibility mode by default, and it was still treating the device as a Quest 1. I fixed it by setting minSdkVersion and targetSdkVersion to 32 (in both build.gradle and AndroidManifest.xml), and also to add the following to inside the application tag inside AndroidManifest.xml

      <meta-data
        android:name="com.oculus.intent.category.VR"
        android:value="vr_only"/>
      <meta-data
        android:name="com.oculus.supportedDevices"
        android:value="quest2|questpro|quest3"/>

      My app is targeting Quest 2 as a minimum, so the solution might need to be tweaked if you still need to target Quest 1. More info can be found here:
      https://developers.meta.com/horizon/documentation/native/android/mobile-native-manifest/