summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-03-27 08:53:38 +0000
committeronelin <oscar@nelin.dk>2025-03-27 14:24:11 +0000
commitdedcbccaede245627d749776ab08996b52079562 (patch)
tree4a3610b7a1178a68bd2b5099fafe633aa9389c55 /src/core
parent3d3400b495067392fa7675dc326f48dcebeb12f8 (diff)
Include dalay in frame_start
Diffstat (limited to 'src/core')
-rw-r--r--src/core/src/loop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/src/loop.c b/src/core/src/loop.c
index f682657..73131d5 100644
--- a/src/core/src/loop.c
+++ b/src/core/src/loop.c
@@ -363,6 +363,8 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) {
delay((u64)fps_diff);
}
+ frame_end = frame_start;
+
/* Print stats */
const u64 dt_measurement = frame_end - last_fps_measurement;