-
Notifications
You must be signed in to change notification settings - Fork 186
Graphics shaking on window resize #536
Comments
Is this using DX12 as a backend? |
No, mac os. |
536: Update Support Platforms Table to Have a Key r=kvark a=cwfitzgerald Closes gfx-rs#531 I have added wording that I believe is accurate, but if there is better wording, feel free to propose it. Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
I see this as well on Win10 |
I believe this is because the window is resized asynchronously from the rendering. So when you resize fast, at some point you window has width 5. Your frame is recorded for the viewport of 5. But by the time it's presented, the window is already of size 6. So I don't know if anything could be done here. |
Looks like a known problem - https://thume.ca/2019/06/19/glitchless-metal-window-resizing/ |
Please try gfx-rs/gfx#3627 as an override to latest wgpu |
Closing because there is an existing wgpu issue. |
I shifted the coordinate to 0,0 to the left, top.
Now the drawn graphics are shaking on resize.
Any idea how to fix it.
It seems when the window is resized the window itself is trying to resize the graphics but on draw call the graphics is drawn again. Thats the reason for the shakiness.
The text was updated successfully, but these errors were encountered: