mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Some tuning in m_max_packets_per_second algorithm
This commit is contained in:
parent
4b6138e69b
commit
7f25183936
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user