From 30e1cdb40418e2f8d648d4249d515ba25ee02132 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 2 Oct 2025 16:20:59 +0200 Subject: [PATCH] use floats for calculating ticratescaled this does not need to be double lel actually improves performance in some cases --- src/i_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i_time.c b/src/i_time.c index d94774984..608a48353 100644 --- a/src/i_time.c +++ b/src/i_time.c @@ -69,7 +69,7 @@ void I_UpdateTime(fixed_t timescale) tic_t realtics; // get real tics - ticratescaled = (double)TICRATE * FIXED_TO_FLOAT(timescale); + ticratescaled = (double)((float)TICRATE * FixedToFloat(timescale)); enterprecise = I_GetPreciseTime(); elapsedseconds = (double)(enterprecise - oldenterprecise) / I_GetPrecisePrecision();