From 2075a4b1ac3e02c387fe13af62b7a91e073a288c Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 10:41:12 +0200 Subject: [PATCH] 1786005672 --- src/trekstor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trekstor.rs b/src/trekstor.rs index fb09bbd..979956b 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -39,7 +39,6 @@ impl Trekstor { loop { self.input.handle_event(); self.current_time = Instant::now(); - self.last_time = self.current_time; let dt = self.current_time - self.last_time; println!("FPS: {}", dt.as_millis()); @@ -54,6 +53,7 @@ impl Trekstor { if dt < self.update_timestep { sleep(self.update_timestep - dt); } + self.last_time = self.current_time; } } }