From 5f3da6ab99b7a3e8e86a440e212a1ee11910726e Mon Sep 17 00:00:00 2001 From: reo Date: Fri, 17 Oct 2025 23:18:18 +0300 Subject: [PATCH] Add FPS counter to the debug UI --- game/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/game/src/main.rs b/game/src/main.rs index 4e0ee6e..ad230cf 100644 --- a/game/src/main.rs +++ b/game/src/main.rs @@ -71,6 +71,7 @@ impl System for RenderingTestSystem { dbg_ui.text("Hello World!".to_owned()); dbg_ui.text(format!("Frame Delta: {}", pctx.time_ctx.frame_dt)); dbg_ui.text(format!("Fixed Delta: {}", pctx.time_ctx.fixed_dt)); + dbg_ui.text(format!("FPS: {}", 1.0 / pctx.time_ctx.frame_dt)); dbg_ui.slider_f32("Rotation Speed", -10.0, 10.0, self.rotation_speed.clone()); }