Add FPS counter to the debug UI

This commit is contained in:
reo 2025-10-17 23:18:18 +03:00
parent 54967067bd
commit 5f3da6ab99

View file

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