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_GL_SwapWindow freezes in a threaded renderer #10900

Open
PunkPun opened this issue Sep 19, 2024 · 1 comment
Open

SDL_GL_SwapWindow freezes in a threaded renderer #10900

PunkPun opened this issue Sep 19, 2024 · 1 comment

Comments

@PunkPun
Copy link

PunkPun commented Sep 19, 2024

In OpenRA I tried to update to the latest SDL2 version and it seems that freezing on moving a window persists.

On Windows windowed mode OpenRA has avoided using threaded rendering for over 6 years due to other freezing issues, however when updating from 2.0.22 issues came to macOS as well.

Any Idea what could be causing a forever loop in SDL_GL_SwapWindow in a treaded context on macOS?

OpenRA/OpenRA#20642 was the tracking issue that got fixed with us downgrading SDL2 2.26.1 -> 2.0.22. We had also downgraded because of #7507, but it was fixed in recent versions of SDL

@icculus
Copy link
Collaborator

icculus commented Sep 19, 2024

This is always going to be dicey on macOS, but try adding this:

SDL_SetHint(SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH, "1");

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

No branches or pull requests

2 participants