diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-21 11:52:26 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-21 11:52:26 +0300 |
commit | 7f2518393624e37e0dad6379a49084c89f7cd177 (patch) | |
tree | c4b3919ec760ae64e50e5fb6920aef1a619b331f /src | |
parent | 4b6138e69b65271b0e568f821a4d1bd285affedd (diff) | |
download | minetest-7f2518393624e37e0dad6379a49084c89f7cd177.tar.gz minetest-7f2518393624e37e0dad6379a49084c89f7cd177.tar.bz2 minetest-7f2518393624e37e0dad6379a49084c89f7cd177.zip |
Some tuning in m_max_packets_per_second algorithm
Diffstat (limited to 'src')
-rw-r--r-- | src/connection.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index 1c424839f..d941f368a 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -469,8 +469,9 @@ void Peer::reportRTT(float rtt) if(m_max_packets_per_second < 100) m_max_packets_per_second += 2; } else { - if(m_max_packets_per_second > 5) - m_max_packets_per_second *= 0.5; + m_max_packets_per_second *= 0.8; + if(m_max_packets_per_second < 10) + m_max_packets_per_second = 10; } } |