Fixed update time implementation.

This commit is contained in:
Ulysse Cura 2026-09-24 23:30:17 +02:00
parent c8c6620ba7
commit 699ac6c7cd
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
inline void update_time(void)
{
static uint32_t last_clock_state = 0;
static uint64_t last_clock_state = 0;
uint64_t start_clock = SDL_GetTicksNS();
game.delta_time_ms = SDL_NS_TO_MS((float)(start_clock - last_clock_state));
if(game.delta_time_ms > 100.0f) game.delta_time_ms = 100.0f;