mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
fix: only log Device::maintain
waits if they happen (#6303)
This commit is contained in:
parent
9977edc51f
commit
841e7c8857
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user