- 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:
Thilo Schulz 2011-07-12 11:01:20 +00:00
parent 1d880da777
commit e52a492f61
6 changed files with 150 additions and 78 deletions

View file

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