Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use trace log level for potentially high-volume vsync duration log (#36147)
Max Brunsfeld09e90fb023cc
diff --git a/crates/gpui/src/platform/windows/vsync.rs b/crates/gpui/src/platform/windows/vsync.rsindex 09dbfd02311..6d09b0960f1 100644--- a/crates/gpui/src/platform/windows/vsync.rs+++ b/crates/gpui/src/platform/windows/vsync.rs@@ -99,7 +99,7 @@ impl VSyncProvider {// operation for the first call after the vsync thread becomes non-idle,// but it shouldn't happen often.if !wait_succeeded || elapsed < VSYNC_INTERVAL_THRESHOLD {- log::warn!("VSyncProvider::wait_for_vsync() took shorter than expected");+ log::trace!("VSyncProvider::wait_for_vsync() took less time than expected");std::thread::sleep(self.interval);}}