From 841e7c885713983a354a814e5635bf43c1e37f56 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Sat, 21 Sep 2024 12:47:35 -0400 Subject: [PATCH] fix: only log `Device::maintain` waits if they happen (#6303) --- wgpu-core/src/device/resource.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index 1cd8ef0fe..03b183e08 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -457,13 +457,13 @@ impl Device { // If necessary, wait for that submission to complete. if maintain.is_wait() { + log::trace!("Device::maintain: waiting for submission index {submission_index}"); unsafe { self.raw() .wait(fence.as_ref(), submission_index, CLEANUP_WAIT_MS) } .map_err(|e| self.handle_hal_error(e))?; } - log::trace!("Device::maintain: waiting for submission index {submission_index}"); let mut life_tracker = self.lock_life(); let submission_closures =