mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Some tuning in m_max_packets_per_second algorithm
This commit is contained in:
parent
4b6138e69b
commit
7f25183936
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue