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

[SDL backend] Use SDL_GL_SetSwapInterval #331

Merged
merged 1 commit into from Apr 20, 2019

Conversation

past-due
Copy link
Member

@past-due past-due commented Apr 19, 2019

Since WZ requires SDL 2, simplify the SDL backend code by utilizing SDL_GL_SetSwapInterval (available since SDL 2.0.0) - which provides better platform compatibility, and has additional workarounds for driver (and other) issues.

Because of the compatibility enhancements and driver bug workarounds available in the SDL_GL_SetSwapInterval implementations, this may help resolve vsync enabling / disabling issues on some systems.

@past-due past-due added this to the 3.3.0_beta2 milestone Apr 19, 2019
@past-due
Copy link
Member Author

This pull request fixes 1 alert when merging 35f6216 into b00b17c - view on LGTM.com

fixed alerts:

  • 1 for FIXME comment

Comment posted by LGTM.com

Since WZ requires SDL 2, simplify the SDL backend code by utilizing `SDL_GL_SetSwapInterval` (available since SDL 2.0.0) - which provides better platform compatibility, and has additional workarounds for driver (and other) issues.
@past-due past-due force-pushed the 2019_04_19_swapinterval_sdl_1 branch from 35f6216 to ab5dae6 Compare April 20, 2019 12:38
@past-due
Copy link
Member Author

This pull request fixes 1 alert when merging ab5dae6 into b00b17c - view on LGTM.com

fixed alerts:

  • 1 for FIXME comment

Comment posted by LGTM.com

@past-due past-due merged commit d517b62 into Warzone2100:master Apr 20, 2019
@past-due past-due deleted the 2019_04_19_swapinterval_sdl_1 branch April 20, 2019 16:57
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.

None yet

1 participant