* sv_minRate (from R1CH)
* [cl|sv]_packetdelay (from tjw)
This commit is contained in:
parent
394c09fa26
commit
7d657ba62f
8 changed files with 90 additions and 2 deletions
|
@ -551,6 +551,13 @@ static int SV_RateMsec( client_t *client, int messageSize ) {
|
|||
rate = sv_maxRate->integer;
|
||||
}
|
||||
}
|
||||
if ( sv_minRate->integer ) {
|
||||
if ( sv_minRate->integer < 1000 )
|
||||
Cvar_Set( "sv_minRate", "1000" );
|
||||
if ( sv_minRate->integer > rate )
|
||||
rate = sv_minRate->integer;
|
||||
}
|
||||
|
||||
rateMsec = ( messageSize + HEADER_RATE_BYTES ) * 1000 / rate;
|
||||
|
||||
return rateMsec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue