From 1d8bc57a86a989b2fb30d3f3ae1cfcb9e55adac1 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Wed, 29 Jun 2022 23:05:42 -0400 Subject: [PATCH] Don't wait for current submission inside of submit (#2824) --- wgpu-core/src/device/queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index ea6b8b286..3be62ef2d 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -1074,7 +1074,7 @@ impl Global { // This will schedule destruction of all resources that are no longer needed // by the user but used in the command stream, among other things. - let (closures, _) = match device.maintain(hub, wgt::Maintain::Wait, &mut token) { + let (closures, _) = match device.maintain(hub, wgt::Maintain::Poll, &mut token) { Ok(closures) => closures, Err(WaitIdleError::Device(err)) => return Err(QueueSubmitError::Queue(err)), Err(WaitIdleError::StuckGpu) => return Err(QueueSubmitError::StuckGpu),