use floats for calculating ticratescaled

this does not need to be double lel
actually improves performance in some cases
This commit is contained in:
Alug 2025-10-02 16:20:59 +02:00 committed by NepDisk
parent f7626d9898
commit 30e1cdb404

View file

@ -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();