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

Fix KillRenderer config changed regression #11625

Merged
merged 2 commits into from Mar 5, 2023

Conversation

phire
Copy link
Member

@phire phire commented Mar 5, 2023

The callback handle was being discarded, resulting in the callback immediately unregistering.

Should fix issues with vsync not disabling during fast-forwarding, along with a bunch of other regressions that probally haven't been reported.

I also added [[nodiscard]] to HookableEvent::Register so we will get some warning about such mistakes in the future.

@MayImilae
Copy link
Contributor

Tested on Windows. With this PR, V-Sync is once again properly disabled when fast forwarding on OpenGL and Vulkan.

Copy link
Contributor

@AdmiralCurtiss AdmiralCurtiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right to me.

@phire phire merged commit 4acdbc0 into dolphin-emu:master Mar 5, 2023
14 checks passed
@phire phire deleted the eventhook_nodiscard branch March 5, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants