[nq] Put the fps lock back in

That wasn't meant to be removed yet as there are physics problems, but
it's useful for renderer testing. It snuck in with the va patch.
This commit is contained in:
Bill Currie 2021-02-01 10:54:49 +09:00
parent eeda04e3c9
commit 08b1d75582

View file

@ -529,7 +529,7 @@ Host_FilterTime (float time)
//FIXME not having the framerate cap is nice, but it breaks net play
timedifference = (timescale / 72.0) - (realtime - oldrealtime);
if (0 && !cls.timedemo && (timedifference > 0))
if (!cls.timedemo && (timedifference > 0))
return timedifference; // framerate is too high
host_frametime = realtime - oldrealtime;
@ -541,7 +541,7 @@ Host_FilterTime (float time)
if (host_framerate->value > 0)
host_frametime = host_framerate->value;
else // don't allow really long or short frames
host_frametime = bound (0.000, host_frametime, 0.1);
host_frametime = bound (0.001, host_frametime, 0.1);
return 0;
}