mirror of
https://github.com/Xevion/rust-sdl2-emscripten.git
synced 2025-12-06 15:16:22 -06:00
loop timing debug
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user