Don't interpolate frames if avg <35

Proper solution for 85ce207e9
This commit is contained in:
James R 2022-01-12 12:57:52 -08:00
parent 85ce207e9c
commit 6a7ca44302

View file

@ -785,10 +785,10 @@ void D_SRB2Loop(void)
if (ticked) if (ticked)
tictime = entertime; tictime = entertime;
entertimefrac = FLOAT_TO_FIXED(entertime - tictime); if (aproxfps < 35.0)
if (entertimefrac < FRACUNIT)
entertimefrac = FRACUNIT; entertimefrac = FRACUNIT;
else
entertimefrac = FLOAT_TO_FIXED(entertime - tictime);
// renderdeltatics is a bit awkard to evaluate, since the system time interface is whole tic-based // renderdeltatics is a bit awkard to evaluate, since the system time interface is whole tic-based
renderdeltatics = realtics * FRACUNIT; renderdeltatics = realtics * FRACUNIT;