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

impr: Stop rubber banding while resizing on macOS #1690

Merged
merged 1 commit into from
May 19, 2024

Conversation

mentlerd
Copy link
Contributor

Problem description

On macOS glfwSetWindowSizeCallback is invoked early during window resizing, rendering a frame in that callback leads to wonky results as the new framebuffer is swapped before the OS has the chance to actually resize the window:

before.mov

Implementation description

Window contents are redrawn only from glfwSetWindowRefreshCallback during resizing, fixing the issue:

after.mov

@WerWolv
Copy link
Owner

WerWolv commented May 19, 2024

God damn I tried everything to get rid of that and decided that it must be Apple's composer just doing that with OpenGL canvases. Thank you!

@WerWolv WerWolv enabled auto-merge (squash) May 19, 2024 12:14
@WerWolv WerWolv disabled auto-merge May 19, 2024 12:14
@WerWolv WerWolv merged commit 2cb673f into WerWolv:master May 19, 2024
@mentlerd mentlerd deleted the refresh_PR branch May 20, 2024 10:25
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