set ctx.frame_duration

This commit is contained in:
veclavtalica
2025-01-26 09:09:21 +03:00
parent 7a403c766e
commit fad46137a0
2 changed files with 1 additions and 1 deletions

View File

@ -532,6 +532,7 @@ static bool initialize(void) {
ctx.desired_frametime = ctx.clocks_per_second / ctx.ticks_per_second;
ctx.frame_accumulator = 0;
ctx.game.frame_number = 0;
ctx.game.frame_duration = 1.0f / (float)ctx.ticks_per_second;
/* delta time averaging */
ctx.delta_averager_residual = 0;