From 9035b14fd2ef35b883a8a62845fbf18e891fefb8 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 11 Nov 2025 17:35:11 -0500 Subject: graphics: use custom timer for delta_time/fps --- game/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'game') diff --git a/game/src/main.rs b/game/src/main.rs index 9449710..28498dc 100644 --- a/game/src/main.rs +++ b/game/src/main.rs @@ -68,7 +68,8 @@ impl Game { }; // Update game state - self.dungeon.update(inputs, self.window.delta_time()); + self.dungeon + .update(inputs, self.window.delta_time().as_secs_f32()); // Draw a single frame self.window.draw_frame(&self.dungeon); -- cgit v1.2.3-freya