8000 fix: window resize flicker on Windows by lofcz · Pull Request #631 · not-fl3/miniquad · GitHub
[go: up one dir, main page]

Skip to content

fix: window resize flicker on Windows - #631

Merged
not-fl3 merged 1 commit into
not-fl3:masterfrom
lofcz:fix-window-flicker
May 22, 2026
Merged

not-fl3 merged 1 commit into
not-fl3:masterfrom
lofcz:fix-window-flicker

Conversation

@lofcz
@lofcz lofcz commented May 22, 2026
Copy link
Copy Markdown
Contributor

During resize, Windows changes the client area before miniquad’s cached screen_width/screen_height are refreshed. This causes one frame to be rendered with stale viewport/projection.

Before:

update()
draw()
SwapBuffers()
update_dimensions()
resize_event()

After:

update_dimensions()
resize_event()
update()
draw()
SwapBuffers()

@not-fl3
not-fl3 commented May 22, 2026
Copy link
Copy Markdown
Owner

Thanks for PR!

@not-fl3
not-fl3 merged commit 5df0c6b into not-fl3:master May 22, 2026
11 checks passed
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

0