diff options
| author | tech kaczynski <tk@techkaczynski.dev> | 2026-10-22 06:17:20 +1000 |
|---|---|---|
| committer | tech kaczynski <tk@techkaczynski.dev> | 2026-10-22 06:17:20 +1000 |
| commit | f5259b6c44b5902a0ca35de113fe16b9275ea13e (patch) | |
| tree | de42321bd5148bf8c87fc288a8bfd6c26e812bbc /app.c | |
| parent | 6bdb9fa5f2214f816b4195922b0b2b85f667e364 (diff) | |
added scene stats to default layout.
Diffstat (limited to 'app.c')
| -rw-r--r-- | app.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(); } |
