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

UI: Disable render dup frames where it can't work #12743

Merged
merged 2 commits into from
Mar 22, 2020

Conversation

unknownbrackets
Copy link
Collaborator

This also makes it possible to use a std::function for IsEnabled(), and uses one instead of reassigning cached booleans with simple expressions. I left HW tess since it's a bit more complex.

Overall, I think it's better to have less copies of the same expression. This also gets rid of a int-to-bool hack, which kinda shows it's worth the convenience...

Fixes #12724.

-[Unknown]

@unknownbrackets unknownbrackets added this to the v1.10.0 milestone Mar 22, 2020
@hrydgard
Copy link
Owner

Yeah, using std::function is way better than the hacky bool pointers. Nice.

@hrydgard hrydgard merged commit 0faa3f2 into hrydgard:master Mar 22, 2020
@unknownbrackets unknownbrackets deleted the ui-minor branch March 22, 2020 13:56
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.

Render Duplicate Frames to 60hz not working in Skip Buffers Effects (Non-Buffered, Faster)
2 participants