ANativeWindow_setFrameRateWithChangeStrategy does not effect

29 views
Skip to first unread message

Zhongwang Zhang

unread,
Jul 29, 2022, 7:38:08 PMJul 29
to android-ndk
I tried ANativeWindow_setFrameRateWithChangeStrategy on my android_s device that support dynamic FPS.
But when I call ANativeWindow_setFrameRateWithChangeStrategy(engine->app->window, 60, ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_FIXED_SOURCE, ANATIVEWINDOW_CHANGE_FRAME_RATE_ALWAYS);

looks set successfully on NativeWindow, but the display refresh do not change.
---------------------------------------------------------------------------------------------------------------------------------------------------------------
 Layer name
           Z |  Window Type |  Layer Class |  Comp Type |  Transform |   Disp Frame (LTRB) |          Source Crop (LTRB) |     Frame Rate (Explicit) (Seamlessness) [Focused]
---------------------------------------------------------------------------------------------------------------------------------------------------------------
  rel      0 |            1 |            0 |     CLIENT |          0 |    0    0 4320 2160 |    0.0    0.0 4320.0 2160.0 | 60.00fps ExactOrMultiple SeamedAndSeamless    [*]
Reply all
Reply to author
Forward
0 new messages