use floats for calculating ticratescaled
this does not need to be double lel actually improves performance in some cases
This commit is contained in:
parent
f7626d9898
commit
30e1cdb404
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue