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