aboutsummaryrefslogtreecommitdiffhomepage
path: root/peer.c
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2020-08-23 16:35:43 -0400
committerLee Salzman <[email protected]>2020-08-23 16:35:43 -0400
commit8d55487767bbd9d49e97d325579d7b6a6fab50b6 (patch)
treeb3253799d3ad6c60e188ed137645968cea886736 /peer.c
parent5de0a6f7646d3aaf8273989ddc4652f6aac880b2 (diff)
downloadenet-8d55487767bbd9d49e97d325579d7b6a6fab50b6.tar.gz
enet-8d55487767bbd9d49e97d325579d7b6a6fab50b6.zip
make throttle more readily accelerate
Diffstat (limited to 'peer.c')
-rw-r--r--peer.c2
1 files changed, 1 insertions, 1 deletions
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;