Use trace log level for potentially high-volume vsync duration log (#36147)
This is an attempt to fix https://github.com/zed-industries/zed/issues/36125 Release Notes: - N/A
This commit is contained in:
parent
8452532c8f
commit
09e90fb023
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ impl VSyncProvider {
|
||||||
// operation for the first call after the vsync thread becomes non-idle,
|
// operation for the first call after the vsync thread becomes non-idle,
|
||||||
// but it shouldn't happen often.
|
// but it shouldn't happen often.
|
||||||
if !wait_succeeded || elapsed < VSYNC_INTERVAL_THRESHOLD {
|
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);
|
std::thread::sleep(self.interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue