1786005198

This commit is contained in:
2026-08-06 10:33:18 +02:00
parent 3fdb3e6f76
commit a6bd7380eb

View File

@@ -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);
}
}