util.c: floating point timers for game loop

This commit is contained in:
2024-07-08 23:47:22 +03:00
parent 98467831d1
commit 194bf0e266
4 changed files with 27 additions and 1 deletions

View File

@ -39,6 +39,7 @@ typedef struct context {
int64_t frame_accumulator;
int64_t delta_averager_residual;
int64_t time_averager[4];
int64_t delta_time; /* preserves real time frame delta with no manipilation */
uint64_t tick_count;
uint64_t step_count;