mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-12 23:54:07 +00:00
A few more timescale influences added
This commit is contained in:
parent
fb18a4b2e4
commit
5ee7b5ed59
1 changed files with 3 additions and 3 deletions
|
@ -558,7 +558,7 @@ static int SV_RateMsec( client_t *client, int messageSize ) {
|
||||||
rate = sv_minRate->integer;
|
rate = sv_minRate->integer;
|
||||||
}
|
}
|
||||||
|
|
||||||
rateMsec = ( messageSize + HEADER_RATE_BYTES ) * 1000 / rate;
|
rateMsec = ( messageSize + HEADER_RATE_BYTES ) * 1000 / rate * com_timescale->value;
|
||||||
|
|
||||||
return rateMsec;
|
return rateMsec;
|
||||||
}
|
}
|
||||||
|
@ -594,9 +594,9 @@ void SV_SendMessageToClient( msg_t *msg, client_t *client ) {
|
||||||
// normal rate / snapshotMsec calculation
|
// normal rate / snapshotMsec calculation
|
||||||
rateMsec = SV_RateMsec(client, msg->cursize);
|
rateMsec = SV_RateMsec(client, msg->cursize);
|
||||||
|
|
||||||
if ( rateMsec < client->snapshotMsec ) {
|
if ( rateMsec < client->snapshotMsec * com_timescale->value) {
|
||||||
// never send more packets than this, no matter what the rate is at
|
// never send more packets than this, no matter what the rate is at
|
||||||
rateMsec = client->snapshotMsec;
|
rateMsec = client->snapshotMsec * com_timescale->value;
|
||||||
client->rateDelayed = qfalse;
|
client->rateDelayed = qfalse;
|
||||||
} else {
|
} else {
|
||||||
client->rateDelayed = qtrue;
|
client->rateDelayed = qtrue;
|
||||||
|
|
Loading…
Reference in a new issue