mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-18 07:15:07 -05: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)
|
if(m_max_packets_per_second < 100)
|
||||||
m_max_packets_per_second += 2;
|
m_max_packets_per_second += 2;
|
||||||
} else {
|
} else {
|
||||||
if(m_max_packets_per_second > 5)
|
m_max_packets_per_second *= 0.8;
|
||||||
m_max_packets_per_second *= 0.5;
|
if(m_max_packets_per_second < 10)
|
||||||
|
m_max_packets_per_second = 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user