diff options
author | kdx <kikoodx@paranoici.org> | 2024-02-07 13:19:11 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2024-02-07 13:19:11 +0100 |
commit | 345c1080b4e438f2d94f0bfad1cbc735ca1112ea (patch) | |
tree | 3c5bc0332ad752e9e58dd073120ea38b8a966802 | |
parent | 3855a2ebd550fb89c8c70caa3776bef532ec87e7 (diff) | |
download | tzr-345c1080b4e438f2d94f0bfad1cbc735ca1112ea.tar.gz |
hardcode 60 fps stabilisation
-rw-r--r-- | sources/TZR_DrawEnd.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |