Bump dependencies for imgui-winit example#400
Bump dependencies for imgui-winit example#400mkrasnitski wants to merge 2 commits intoparasyte:mainfrom
Conversation
|
The validation error is from desynchronized draw and resize. Resize is deferred by It can be fixed by reordering these operations. E.g. by moving the drawing code after the resize, but before the Sigh. These are some skeletons in the closet. The history here is sort of documented in #270 (comment). I ended up matching on the event for Deferring these events causes problems like the resize looking horrible while the user drags the window frame around. The intermediate frame gets stretched and warped. The right way to handle resize will correctly redraw every frame while the resize is in progress. And doing that means no deferral of resize and redraw events. And yeah, deferring events is what you are expected to do with So, it's probably time for it to go. |
|
I'm also completely misremembering how it ended up that pixels/examples/invaders/main.rs Lines 34 to 38 in 17c6054 All of the examples inherited it. |
imgui-wgpu-rs now supports wgpu 0.19 and winit 0.29, but only on the git HEAD. A release hasn't been cut yet so keeping this as draft for now. Also, resizing the window now crashes the app with the following error:
I figured this PR would be a good place to track this while the root cause is figured out.