Skip to content

Conversation

ro8inmorgan
Copy link

@ro8inmorgan ro8inmorgan commented Oct 5, 2025

Description

Added feature for Android that sets the display's refresh rate to a supported refresh rate mode based on the value set in the configuration vertical refresh rate variable. For example my device has a 120hz capable display but can be set to 90hz or 60hz when requested by an App.

Added a call to ra_notify_refresh_rate() when the config is loaded in configuration.c which in turn communicates with the Android app through JNI to set the refresh rate. The Android app will check supported refresh rates and requests Android OS to set the refresh rate to the closest supported refresh rate mode of the requested refresh rate.

This way you can run games at 60hz with vsync on in Android without the need to adjust the display refresh rate in Android settings itself. This way you can set refresh rates also per override config etc without ever needing to change it in Android settings itself all the time.

Main part added is ra_android_bridge.c which can also be used for any future communications from Retroarch back to the Android app

…n Retroarch vertical refresh rate config value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant