From b63fd5256ad320ba02411cbb59ef52ab9e7b88cf Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 5 Sep 2020 20:29:58 -0400 Subject: [PATCH] clamp RTT variance a bit more loosely for throttle --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }