put the framerate cap back in for now as it's vital for net play. we need to

get network frames separated when not doing single player.
This commit is contained in:
Bill Currie 2002-05-07 04:32:28 +00:00
parent cc0a428e2b
commit 985caa26f0

View file

@ -510,6 +510,7 @@ Host_ClearMemory (void)
qboolean
Host_FilterTime (float time)
{
float timedifference;
float timescale = 1.0;
if (cls.demoplayback) {
@ -519,6 +520,12 @@ Host_FilterTime (float time)
realtime += time;
//FIXME not having the framerate cap is nice, but it breaks net play
timedifference = (timescale / 72.0) - (realtime - oldrealtime);
if (!cls.timedemo && (timedifference > 0))
return false; // framerate is too high
host_frametime = realtime - oldrealtime;
oldrealtime = realtime;