Skip to content

Commit 1d8bc57

Browse files
authored
Don't wait for current submission inside of submit (#2824)
1 parent 464b61d commit 1d8bc57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-core/src/device/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
10741074

10751075
// This will schedule destruction of all resources that are no longer needed
10761076
// by the user but used in the command stream, among other things.
1077-
let (closures, _) = match device.maintain(hub, wgt::Maintain::Wait, &mut token) {
1077+
let (closures, _) = match device.maintain(hub, wgt::Maintain::Poll, &mut token) {
10781078
Ok(closures) => closures,
10791079
Err(WaitIdleError::Device(err)) => return Err(QueueSubmitError::Queue(err)),
10801080
Err(WaitIdleError::StuckGpu) => return Err(QueueSubmitError::StuckGpu),

0 commit comments

Comments
 (0)