- 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
@@ -192,8 +192,9 @@ void NET_Sleep(int msec);
|
||||
#define MAX_MSGLEN 16384 // max length of a message, which may
|
||||
// be fragmented into multiple packets
|
||||
|
||||
#define MAX_DOWNLOAD_WINDOW 8 // max of eight download frames
|
||||
#define MAX_DOWNLOAD_BLKSIZE 2048 // 2048 byte block chunks
|
||||
#define MAX_DOWNLOAD_WINDOW 48 // ACK window of 48 download chunks. Cannot set this higher, or clients
|
||||
// will overflow the reliable commands buffer
|
||||
#define MAX_DOWNLOAD_BLKSIZE 1024 // 896 byte block chunks
|
||||
|
||||
|
||||
/*
|
||||
@@ -1029,6 +1030,7 @@ void SV_Frame( int msec );
|
||||
void SV_PacketEvent( netadr_t from, msg_t *msg );
|
||||
int SV_FrameMsec(void);
|
||||
qboolean SV_GameCommand( void );
|
||||
int SV_SendDownloadMessages(void);
|
||||
|
||||
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user