mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-29 23:32:23 +00:00
Fix listen server sending snapshots each client frame
Running a server using the client engine would send server snapshots
to loopback and LAN clients each client frame (com_maxfps).
This causes excessive network traffic and likely does not provide new
information to the clients because SV_Frame() won't have run between
the extra snapshots.
This commit restores the original behavior of respecting local/LAN
client's snaps userinfo and sv_fps. The issue was introduced by the
following commit:
Commit ac30d86db0
From: Thilo Schulz
Date: Wed, 13 Jul 2011 17:11:30 +0000
Subject: - Improve snapshot rate and data rate control
Reported by Eugene C.
This commit is contained in:
parent
c04cf19b77
commit
45de6be4c2
1 changed files with 3 additions and 4 deletions
|
@ -653,6 +653,9 @@ void SV_SendClientMessages(void)
|
|||
if(!c->state)
|
||||
continue; // not connected
|
||||
|
||||
if(svs.time - c->lastSnapshotTime < c->snapshotMsec * com_timescale->value)
|
||||
continue; // It's not time yet
|
||||
|
||||
if(*c->downloadName)
|
||||
continue; // Client is downloading, don't send snapshots
|
||||
|
||||
|
@ -666,10 +669,6 @@ void SV_SendClientMessages(void)
|
|||
(sv_lanForceRate->integer && Sys_IsLANAddress(c->netchan.remoteAddress))))
|
||||
{
|
||||
// rate control for clients not on LAN
|
||||
|
||||
if(svs.time - c->lastSnapshotTime < c->snapshotMsec * com_timescale->value)
|
||||
continue; // It's not time yet
|
||||
|
||||
if(SV_RateMsec(c) > 0)
|
||||
{
|
||||
// Not enough time since last packet passed through the line
|
||||
|
|
Loading…
Reference in a new issue