Skip to content
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

Remove menu_throttle_framerate option #15850

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

sonninnos
Copy link
Collaborator

Description

Let's remove this option since it does not do anything, and it is not necessary. There is no reason to allow menu to run at unlimited speed, so instead of doing it regardless of the option by enforcing vsync on every toggle, let's just use the same frame time limiting method the VRR option is using.

The reasoning for this is because Vulkan will flash on menu toggle if built-in vsync is disabled and when in fullscreen. Using only the global vsync option instead of toggling it every time in menu also fits better when using 3rd party sync methods.

Also removed RUNLOOP_STATE_MENU_ITERATE because it also does not serve any real purpose, and the condition for using it was very confusing and pointless. Correct me if I am wrong.

Also made sure fast-forward and slow-motion are toggled off when entering menu, and some tab cleanups.

When using other swap intervals than 1, the removed menu vsync forcing might be warranted, since it also forces swap interval to 1, but it should only happen when vsync option is enabled. Please test with high and variable refresh rate hardware to see what happens and to make sure I'm not overlooking anything!

@LibretroAdmin LibretroAdmin merged commit 220caa5 into libretro:master Oct 31, 2023
22 checks passed
@sonninnos sonninnos deleted the menu-throttle branch October 31, 2023 18:17
JoeOsborn pushed a commit to JoeOsborn/RetroArch that referenced this pull request Nov 2, 2023
Sunderland93 pushed a commit to Sunderland93/RetroArch that referenced this pull request Dec 26, 2024
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.

2 participants