- Greatly improve UDP downloading speed for clients
- Add download rate control cvar sv_dlRate - Don't send snapshots to downloading clients
This commit is contained in:
1 parent
1d880da777
commit
e52a492f61
6 files changed
+150
-78
No files matched your search
@@ -647,9 +647,6 @@ void SV_SendClientSnapshot( client_t *client ) {
|
||||
// and the playerState_t
|
||||
SV_WriteSnapshotToClient( client, &msg );
|
||||
|
||||
// Add any download data if the client is downloading
|
||||
SV_WriteDownloadToClient( client, &msg );
|
||||
|
||||
#ifdef USE_VOIP
|
||||
SV_WriteVoipToClient( client, &msg );
|
||||
#endif
|
||||
@@ -683,6 +680,9 @@ void SV_SendClientMessages( void ) {
|
||||
continue; // not time yet
|
||||
}
|
||||
|
||||
if(*c->downloadName)
|
||||
continue; // Client is downloading, don't send snapshots
|
||||
|
||||
// send additional message fragments if the last message
|
||||
// was too large to send at once
|
||||
if ( c->netchan.unsentFragments ) {
|
||||
@@ -696,4 +696,3 @@ void SV_SendClientMessages( void ) {
|
||||
SV_SendClientSnapshot( c );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user