fixed the jitter due to snapshots piling up with the same server timestamp for loopback and LAN clients

This commit is contained in:
myT 2018-01-15 21:04:55 +01:00
parent 37e2b07e5a
commit 176aa6a24d
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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;
}