techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
authortech kaczynski <tk@techkaczynski.dev>2026-10-22 06:17:20 +1000
committertech kaczynski <tk@techkaczynski.dev>2026-10-22 06:17:20 +1000
commitf5259b6c44b5902a0ca35de113fe16b9275ea13e (patch)
treede42321bd5148bf8c87fc288a8bfd6c26e812bbc /app.c
parent6bdb9fa5f2214f816b4195922b0b2b85f667e364 (diff)
added scene stats to default layout.
Diffstat (limited to 'app.c')
-rw-r--r--app.c4
1 files changed, 4 insertions, 0 deletions
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();
}