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 --- peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'peer.c') diff --git a/peer.c b/peer.c index ca93289..56a285f 100644 --- a/peer.c +++ b/peer.c @@ -66,7 +66,7 @@ enet_peer_throttle (ENetPeer * peer, enet_uint32 rtt) peer -> packetThrottle = peer -> packetThrottleLimit; } else - if (rtt <= peer -> lastRoundTripTime) + if (rtt <= peer -> lastRoundTripTime + (peer -> lastRoundTripTimeVariance + 1) / 2) { peer -> packetThrottle += peer -> packetThrottleAcceleration; -- cgit v1.2.3