diff options
| author | onelin <oscar@nelin.dk> | 2025-03-27 08:53:38 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-03-27 14:24:11 +0000 |
| commit | dedcbccaede245627d749776ab08996b52079562 (patch) | |
| tree | 4a3610b7a1178a68bd2b5099fafe633aa9389c55 /src | |
| parent | 3d3400b495067392fa7675dc326f48dcebeb12f8 (diff) | |
Include dalay in frame_start
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/src/loop.c | 2 |
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; |
