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 committed by SinnamonLat
parent fd9590cc3d
commit e909cb0a73

View file

@ -787,10 +787,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;