mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-23 04:12:42 +00:00
fixed the jitter due to snapshots piling up with the same server timestamp for loopback and LAN clients
This commit is contained in:
parent
37e2b07e5a
commit
176aa6a24d
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,10 @@
|
|||
|
||||
07 Jan 17 - 1.49
|
||||
DD Mmm 18 - 1.50
|
||||
|
||||
fix: jitter due to snapshots piling up with the same server timestamp for loopback and LAN clients
|
||||
|
||||
|
||||
07 Jan 18 - 1.49
|
||||
|
||||
add: color cvars for console customization
|
||||
con_colBG <RGBA> (default: "101013F6") - console and help panel background
|
||||
|
|
|
@ -538,7 +538,9 @@ void SV_SendMessageToClient( msg_t *msg, client_t *client ) {
|
|||
// TTimo - https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=491
|
||||
// added sv_lanForceRate check
|
||||
if ( client->netchan.remoteAddress.type == NA_LOOPBACK || (sv_lanForceRate->integer && Sys_IsLANAddress(client->netchan.remoteAddress)) ) {
|
||||
client->nextSnapshotTime = svs.time - 1;
|
||||
// we do NOT currently have snapshots every frame because of SV_Frame's NET_Sleep call
|
||||
// but we can avoid piling up snapshots in the same milli-second before sleeping roughly 1000/sv_fps milli-seconds...
|
||||
client->nextSnapshotTime = svs.time + 1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue