Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Ihor.Ilkevych's avatar
Ihor.Ilkevych
Honored Guest
5 months ago

native request refresh rate

I want native android app to request refresh rate change like openxr app does using
https://registry.khronos.org/OpenXR/specs/1.0/html/xrspec.html#xrRequestDisplayRefreshRateFB

I tried to do it using ANativeWindow_setFrameRate but it doesn't work. I guess compositor ignores request from 2d apps as they control only small part of the the display.

I'm using as simple test
https://github.com/android/ndk-samples/tree/master/native-activity
After quest 2 is forced to run in 120fps using ADB, ORV metrics tool shows that app easily provides 120 frames.
Profiler shows that frames are on display only 8.35ms.

App is running in passthrough mode.
Just need an api to change refresh rate from android native app

1 Reply

Replies have been turned off for this discussion