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 committed 2025-10-02 17:34:51 +02:00
1 parent 20c570c97c
commit 146d4da72c
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ void I_UpdateTime(fixed_t timescale)
tic_t realtics;
// get real tics
ticratescaled = (double)TICRATE * FixedToDouble(timescale);
ticratescaled = (double)((float)TICRATE * FixedToFloat(timescale));
enterprecise = I_GetPreciseTime();
elapsedseconds = (double)(enterprecise - oldenterprecise) / I_GetPrecisePrecision();