loop timing debug

This commit is contained in:
2024-04-13 21:13:46 -05:00
parent b63401cd89
commit d82b97555a

View File

@@ -118,6 +118,8 @@ pub fn main() {
}
}
event!(tracing::Level::DEBUG, "Loop took: {:?} (max {:?})", start.elapsed(), loop_time);
if start.elapsed() < loop_time {
let time = loop_time.saturating_sub(start.elapsed());
if time != Duration::ZERO {