Video: Add option to automatically set display-reported refresh rate - #19443
Open
Ryunam wants to merge 1 commit into
Open
Video: Add option to automatically set display-reported refresh rate#19443Ryunam wants to merge 1 commit into
Ryunam wants to merge 1 commit into
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
This PR adds an option under Settings -> Video called "Automatically Set Display-Reported Refresh Rate". It defaults to OFF and, when enabled, will automatically set the vertical refresh rate to the display-reported value.
This is quite handy to have especially on PC gaming handhelds, where the embedded screen might be running at a certain refresh rate (120hz, for instance) while another external monitor used when docking the device might have a completely different native rate (60hz, for instance).
The new option will also work in conjunction with the existing content-based "Automatic Refresh Rate Switch" setting found in Settings -> Video, based on the following logic:
When "Automatically Set Display-Reported Refresh Rate" is ON, the content-based "Automatic Refresh Rate Switch" is also ON and RetroArch is using any of the matching fullscreen modes, "Automatic Refresh Rate Switch" will take precedence and the refresh rate will be adjusted accordingly based on the running content.
On the other hand, when "Automatically Set Display-Reported Refresh Rate" is ON, and "Automatic Refresh Rate Switch" is OFF, or is ON but RetroArch is not using any matching fullscreen mode(s), the automatic switch to the display-reported value will kick in at startup and driver reinits.
Reviewers
@LibretroAdmin
@sonninnos