mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
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:
parent
cc0a428e2b
commit
985caa26f0
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue