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

hello-triangle resize behavior #2144

Closed
prideout opened this issue Nov 1, 2021 · 4 comments
Closed

hello-triangle resize behavior #2144

prideout opened this issue Nov 1, 2021 · 4 comments
Labels
area: ecosystem Help the connected projects grow and prosper

Comments

@prideout
Copy link

prideout commented Nov 1, 2021

Resizing the window in wgpu/examples/hello-triangle works fine on my Windows NVIDIA machine but not on my M1 MacBook. It doesn't seem to refresh even though the WindowEvent::Resized arm is definitely getting hit in the event loop. Screenshot attached after widening the window. (no error messages).

Screen Shot 2021-11-01 at 3 35 23 PM

@kvark
Copy link
Member

kvark commented Nov 2, 2021

What about other examples like cube?

@kvark kvark added the area: ecosystem Help the connected projects grow and prosper label Nov 2, 2021
@prideout
Copy link
Author

prideout commented Nov 2, 2021

cube works great, there is no resize issue there.

@xiaopengli89
Copy link
Contributor

xiaopengli89 commented Nov 2, 2021

This problem can be solved by calling window.request_redraw(); during the resize event.

@xiaopengli89
Copy link
Contributor

The cube example uses framework.rs, which will redraw every 1/60 second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ecosystem Help the connected projects grow and prosper
Projects
None yet
Development

No branches or pull requests

4 participants