Setting the refresh rate via the Surface.setFrameRate() method of unitySurfaceView is not working.
I have enabled the 'Show Refresh Rate' option in the developer settings and set the screen refresh rate to 90Hz in the system settings.
Observation:
- When starting the app, the refresh rate is 90Hz. However, after idling for 20 seconds, it changes to 30Hz.
- Calling
setFrameRate() with a value of 60Hz still shows 90Hz initially, but after idling, it displays 60Hz.
This was tested on Redmi 12 5g