aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2020-09-05 20:29:58 -0400
committerLee Salzman <[email protected]>2020-09-05 20:29:58 -0400
commitb63fd5256ad320ba02411cbb59ef52ab9e7b88cf (patch)
treeb0bed206364f5c1e4ddc06aaf9562693284dd9a8
parent65dc0f74d8ccffa27de8bdd50c907e42b77c3cdc (diff)
downloadenet-b63fd5256ad320ba02411cbb59ef52ab9e7b88cf.tar.gz
enet-b63fd5256ad320ba02411cbb59ef52ab9e7b88cf.zip
clamp RTT variance a bit more loosely for throttle
-rw-r--r--protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol.c b/protocol.c
index 862698d..49b66de 100644
--- a/protocol.c
+++ b/protocol.c
@@ -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;
}