Skip to content

Fullscreen refresh rate improvements #16705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

zoltanvb
Copy link
Contributor

Description

Handle refresh rate as float in general, and add also extra attributes (interlaced, doublescan) for video modes. Possible to select exact mode (interlaced / doublescan modes will not be selected), and allow close matches such as 49.5 Hz for PAL 50 Hz.

Refresh rates will appear as float (3 decimals) in the fullscreen resolution list, if context driver allows getting the exact value (i.e. in KMS), otherwise existing display and function remains.

Related Issues

Closes #16615

Related Pull Requests

#15301
#12795

Reviewers

A quick check would be nice that refresh rate switch to 50Hz still works in case of Windows (general operation and resolution changes checked, but I it seems my old laptop cannot do 50Hz at all) - any core with PAL region should be OK.

@sonninnos for general comments

Handle refresh rate as float in general, and add also extra
attributes (interlaced, doublescan) for video modes.

Make it possible to select exact mode (interlaced / doublescan modes
will not be selected), and allow close matches such as 49.5 Hz
for PAL 50 Hz.
@sonninnos
Copy link
Collaborator

Looks reasonable to me.

@LibretroAdmin LibretroAdmin merged commit 2ca9737 into libretro:master Jun 17, 2024
27 checks passed
@zoltanvb
Copy link
Contributor Author

Buildbot fails for msvc05:

c:\gitlab-runner\builds-sukb9sf\2\libretro\retroarch\griffin../gfx/display_servers/dispserv_win32.c(371) : error C2065: 'DM_INTERLACED' : undeclared identifier

I'll try to find a workaround.

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.

Refresh Rate switching needs better checking on refresh rates
3 participants