From a6bd7380eb7b5ec84f1c734f4abb520c5d8359aa Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 10:33:18 +0200 Subject: [PATCH] 1786005198 --- src/trekstor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trekstor.rs b/src/trekstor.rs index 5a6a3a0..9f0aad6 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -38,6 +38,7 @@ impl Trekstor { pub fn update(&mut self, update: UpdateFn) { loop { self.input.handle_event(); + self.current_time = Instant::now(); let dt = self.current_time - self.last_time; println!("Frame"); @@ -58,7 +59,6 @@ impl Trekstor { dbg!(dt, self.update_timestep); self.last_time = self.current_time; - self.current_time = Instant::now(); sleep(wait_time); } }