Skip to content

ANDROID Set display refresh rate based on the video->output->vertical refresh rate config value#18292

Closed
ro8inmorgan wants to merge 46 commits intolibretro:masterfrom
ro8inmorgan:android_set_refresh_rate
Closed

ANDROID Set display refresh rate based on the video->output->vertical refresh rate config value#18292
ro8inmorgan wants to merge 46 commits intolibretro:masterfrom
ro8inmorgan:android_set_refresh_rate

Conversation

@ro8inmorgan
Copy link
Copy Markdown
Contributor

@ro8inmorgan ro8inmorgan commented Oct 5, 2025

Description

Added the feature on Android that sets the display's refresh rate based on the value set in the configuration refresh_rate variable. For example my device has a 120hz but can be set to 60hz or 90hz based on the app. Added a notifier which is called when the config is loaded so the Android app communicates the correct refresh rate to the Android OS. This can help with vsyncing for example 60fps cores on a 120hz screen. This way you don't need to switch your display refresh rate manually in the Android Settings.

Added ra_android_bridge which can also be used for any future communications from Retroarch back to the Android app

Please ignore my commit history, just check latest commit for the PR changes I want to Pull. Its a very personal way of working, I know it looks very chaotic to most people, but its just how I'm used to it over 20+ years.

@ro8inmorgan ro8inmorgan changed the title Android App now sets refresh rate based on the video output refresh rate config ANDROID Set display refresh rate based on the video->output->vertical refresh rate config value Oct 5, 2025
@ro8inmorgan ro8inmorgan closed this Oct 5, 2025
@ro8inmorgan ro8inmorgan deleted the android_set_refresh_rate branch October 6, 2025 06:13
@ro8inmorgan ro8inmorgan restored the android_set_refresh_rate branch October 6, 2025 06:14
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