wgpu
wgpu copied to clipboard
Surface lags behind on window resize
Description When resizing the window, the wpgu surface does not keep up with the size of the window. This is possibly a problem with winit instead.
Repro steps Run any example in the wgpu/examples folder
Expected vs observed behavior I expect the surface to resize exactly to the current window dimensions:
https://user-images.githubusercontent.com/50533236/236695650-8513c44c-1d6d-4a2b-938a-3d436d090037.mov
But instead the surface lags behind the current window size:
https://user-images.githubusercontent.com/50533236/236695535-5674eca7-e02c-4d70-a277-1d2b57e86b35.mov
Platform This is running on MacOS Ventura (Metal). Using wgpu on v0.16 git I've not tested on Windows or Linux.