Skip to content

Add Windows window live resize #201

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

Merged
merged 5 commits into from
Jul 13, 2025
Merged

Add Windows window live resize #201

merged 5 commits into from
Jul 13, 2025

Conversation

HeliumAnt
Copy link
Contributor

@HeliumAnt HeliumAnt commented Jul 12, 2025

Adds event watch for SDL_EVENT_WINDOW_EXPOSED to allow redraw while windows is locking the main thread during modal interactions (move, resize, etc.)

(disabled on non windows since everywhere else those aren't blocking operations, and using the event watch leads to really bad flickering with vsync enabled)

Disabled on linux since it introduces really bad flickering on resize,
and is not needed anyway since linux does not lock your main thread
while you're changing the window
@Causeless
Copy link
Contributor

This doesn't work- the screen just blacks out whenever resizing.

Is there no way to make screen resizes non-blocking on Windows?

@HeliumAnt
Copy link
Contributor Author

Is there no way to make screen resizes non-blocking on Windows?

sortof, technically that is what I'm doing here, but apparently it's not working?
libsdl-org/SDL#1059
https://stackoverflow.com/questions/3102074/win32-my-application-freezes-while-the-user-resizes-the-window

@Causeless Causeless enabled auto-merge July 13, 2025 06:38
@Causeless Causeless added this pull request to the merge queue Jul 13, 2025
Merged via the queue into development with commit 334f1d6 Jul 13, 2025
4 checks passed
@Causeless Causeless deleted the windows-live-resize branch July 13, 2025 06:50
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.

2 participants