Skip to content

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.

3 participants