mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
clamp RTT variance a bit more loosely for throttle
This commit is contained in:
parent
65dc0f74d8
commit
b63fd5256a
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ enet_protocol_handle_acknowledge (ENetHost * host, ENetEvent * event, ENetPeer *
|
|||
peer -> lastRoundTripTime = peer -> lowestRoundTripTime;
|
||||
peer -> lastRoundTripTimeVariance = ENET_MAX (peer -> highestRoundTripTimeVariance, (peer -> lowestRoundTripTime + 15) / 16);
|
||||
peer -> lowestRoundTripTime = roundTripTime;
|
||||
peer -> highestRoundTripTimeVariance = ENET_MAX (roundTripTimeVariance, 2);
|
||||
peer -> highestRoundTripTimeVariance = ENET_MAX (roundTripTimeVariance, 3);
|
||||
peer -> packetThrottleEpoch = host -> serviceTime;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue