Skip to content

GLFW window start at correct size and draw during resize #70

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 1 commit into from
Mar 24, 2025

Conversation

almarklein
Copy link
Member

Closes #69, relates to #65

  • Create the glfw window in hidden state, then show once properly initialized. This avoids starting at a hard-coded size and then resizing.
  • Draw during resizing. No events are processed and the loop is on pause during a user-resize-action. But at least it feels a bit more smooth.

@almarklein
Copy link
Member Author

FWIW its ok if _draw_frame_and_present() is called outside of our scheduling mechanics; happens in Qt too.

@almarklein almarklein merged commit 6fddc81 into main Mar 24, 2025
13 checks passed
@almarklein almarklein deleted the glfw-resize branch March 24, 2025 10:14
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.

Feature request: interative resize event
2 participants