diff options
author | Lee Salzman <[email protected]> | 2020-09-05 20:29:58 -0400 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2020-09-05 20:29:58 -0400 |
commit | b63fd5256ad320ba02411cbb59ef52ab9e7b88cf (patch) | |
tree | b0bed206364f5c1e4ddc06aaf9562693284dd9a8 | |
parent | 65dc0f74d8ccffa27de8bdd50c907e42b77c3cdc (diff) | |
download | enet-b63fd5256ad320ba02411cbb59ef52ab9e7b88cf.tar.gz enet-b63fd5256ad320ba02411cbb59ef52ab9e7b88cf.zip |
clamp RTT variance a bit more loosely for throttle
-rw-r--r-- | protocol.c | 2 |
1 files changed, 1 insertions, 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; } |