From 8d55487767bbd9d49e97d325579d7b6a6fab50b6 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 23 Aug 2020 16:35:43 -0400 Subject: make throttle more readily accelerate --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocol.c') diff --git a/protocol.c b/protocol.c index 906f57d..2b35e3e 100644 --- a/protocol.c +++ b/protocol.c @@ -888,7 +888,7 @@ enet_protocol_handle_acknowledge (ENetHost * host, ENetEvent * event, ENetPeer * ENET_TIME_DIFFERENCE (host -> serviceTime, peer -> packetThrottleEpoch) >= peer -> packetThrottleInterval) { peer -> lastRoundTripTime = peer -> lowestRoundTripTime; - peer -> lastRoundTripTimeVariance = ENET_MAX (peer -> highestRoundTripTimeVariance, (peer -> lowestRoundTripTime + 23) / 24); + peer -> lastRoundTripTimeVariance = ENET_MAX (peer -> highestRoundTripTimeVariance, (peer -> lowestRoundTripTime + 15) / 16); peer -> lowestRoundTripTime = peer -> roundTripTime; peer -> highestRoundTripTimeVariance = peer -> roundTripTimeVariance; peer -> packetThrottleEpoch = host -> serviceTime; -- cgit v1.2.3