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
Closed
ANDROID Set display refresh rate based on the video->output->vertical refresh rate config value#18292ro8inmorgan wants to merge 46 commits intolibretro:masterfrom
ro8inmorgan wants to merge 46 commits intolibretro:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.