mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-31 09:01:54 +00:00
- 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:
parent
1d880da777
commit
e52a492f61
6 changed files with 150 additions and 78 deletions
|
@ -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);
|
||||
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue