From: Perttu Ahola Date: Fri, 21 Oct 2011 08:52:26 +0000 (+0300) Subject: Some tuning in m_max_packets_per_second algorithm X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=7f2518393624e37e0dad6379a49084c89f7cd177;p=zefram%2Fminetest%2Fminetest_engine.git Some tuning in m_max_packets_per_second algorithm --- diff --git a/src/connection.cpp b/src/connection.cpp index 1c424839..d941f368 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; } }