From 345c1080b4e438f2d94f0bfad1cbc735ca1112ea Mon Sep 17 00:00:00 2001 From: kdx Date: Wed, 7 Feb 2024 13:19:11 +0100 Subject: hardcode 60 fps stabilisation --- sources/TZR_DrawEnd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/TZR_DrawEnd.c b/sources/TZR_DrawEnd.c index 070accd..85cdc64 100644 --- a/sources/TZR_DrawEnd.c +++ b/sources/TZR_DrawEnd.c @@ -67,6 +67,8 @@ TZR_DrawEnd(void) if (___tzr_config.target_fps > 0) { ___tzr_next_time += ___tzr_min_dt; + if (___tzr_config.target_fps == 60 && ___tzr_tick % 3 < 2) + ___tzr_next_time += 1; const unsigned long cur_time = SDL_GetTicks64(); if (___tzr_next_time <= cur_time) ___tzr_next_time = cur_time; -- cgit v1.2.3