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

macOS: SDL_SyncWindow can time out if the app supports live resize #12233

Open
slime73 opened this issue Feb 9, 2025 · 0 comments
Open

macOS: SDL_SyncWindow can time out if the app supports live resize #12233

slime73 opened this issue Feb 9, 2025 · 0 comments
Assignees
Milestone

Comments

@slime73
Copy link
Contributor

slime73 commented Feb 9, 2025

I recently added live resize support to my program (by running the game loop in an SDL event watcher when SDL_EVENT_WINDOW_EXPOSED happens).

Doing so has caused my macOS Github Action CI tests to intermittently fail in some window tests because SDL_SyncWindow is hitting the internal timeout before some state transitions actually complete. Here's an example (near the bottom of the 'Run Test Suite' part of the log) https://github.com/slime73/love-experiments/actions/runs/13226467292/job/36917969548

I haven't been able to reproduce the problem on my own Mac, I'm guessing because it's much faster than a github runner. Assuming an app doesn't do anything drastically slow in its game loop, is there something in SDL that should change to make SyncWindow more reliable in this situation? Or something my own code should change?

@slouken slouken added this to the 3.2.6 milestone Feb 9, 2025
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

3 participants