From dedcbccaede245627d749776ab08996b52079562 Mon Sep 17 00:00:00 2001 From: onelin Date: Thu, 27 Mar 2025 09:53:38 +0100 Subject: Include dalay in frame_start --- src/core/src/loop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.3