diff options
author | Lee Salzman <[email protected]> | 2020-08-12 15:42:57 -0400 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2020-08-12 15:42:57 -0400 |
commit | 5de0a6f7646d3aaf8273989ddc4652f6aac880b2 (patch) | |
tree | 00b12f43c8c64634d71bca146958d8abeb7c0cf3 /protocol.c | |
parent | eda26a26d913a1e86f44fae725049c97dc1ce5a8 (diff) | |
download | enet-5de0a6f7646d3aaf8273989ddc4652f6aac880b2.tar.gz enet-5de0a6f7646d3aaf8273989ddc4652f6aac880b2.zip |
make throttle even more tolerant of variance
Diffstat (limited to 'protocol.c')
-rw-r--r-- | protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 + 31) / 32); + peer -> lastRoundTripTimeVariance = ENET_MAX (peer -> highestRoundTripTimeVariance, (peer -> lowestRoundTripTime + 23) / 24); peer -> lowestRoundTripTime = peer -> roundTripTime; peer -> highestRoundTripTimeVariance = peer -> roundTripTimeVariance; peer -> packetThrottleEpoch = host -> serviceTime; |