mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
c45ea6f5b1f8dc7a59cdc2f222f768be7a2e85f1
800: Schedule event waits after redraw events are cleared r=kvark a=kvark As @adamnemecek pointed out, our examples were busy waiting. I investigated a bit and figured that our `WaitScheduled` was always interrupted by `RedrawEventsCleared`. So scheduling the wait in it works. Tested on Linux and macOS. CPU time of the cube example drops from 100% to single-digit. Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
Description
No description provided
Languages
Rust
79.9%
WGSL
16.2%
HLSL
2%
GLSL
1.7%
JavaScript
0.2%