From f5259b6c44b5902a0ca35de113fe16b9275ea13e Mon Sep 17 00:00:00 2001 From: tech kaczynski Date: Thu, 22 Oct 2026 06:17:20 +1000 Subject: added scene stats to default layout. --- app.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app.c') diff --git a/app.c b/app.c index 851b179..c1010d4 100644 --- a/app.c +++ b/app.c @@ -49,6 +49,8 @@ app_exit(void) { static void app_loop(void) { app.run = !WindowShouldClose(); + f64 frame_start = GetTime(); + entity_system_update(); /* this is some hypothetical bullshit, probably will change */ @@ -77,6 +79,8 @@ app_loop(void) { } editor_draw_ui(); + + app.frame_time_ms = (GetTime() - frame_start) * 1000.0f; EndDrawing(); } -- cgit v1.2.3