make m_minimumDripRate a bit larger than mtu. Add a bucket space check that does not consume avaiable space, so reducing bandwidth
parent
f57a48a0fb
commit
40cb83b555
|
@ -60,7 +60,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected const float m_minimumDripRate = 1400;
|
protected const float m_minimumDripRate = 1500;
|
||||||
|
|
||||||
/// <summary>Time of the last drip, in system ticks</summary>
|
/// <summary>Time of the last drip, in system ticks</summary>
|
||||||
protected Int32 m_lastDrip;
|
protected Int32 m_lastDrip;
|
||||||
|
@ -286,6 +286,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool CheckTokens(int amount)
|
||||||
|
{
|
||||||
|
return (m_tokenCount - amount >= 0);
|
||||||
|
}
|
||||||
|
|
||||||
public int GetCatBytesCanSend(int timeMS)
|
public int GetCatBytesCanSend(int timeMS)
|
||||||
{
|
{
|
||||||
// return (int)(m_tokenCount + timeMS * m_dripRate * 1e-3);
|
// return (int)(m_tokenCount + timeMS * m_dripRate * 1e-3);
|
||||||
|
|
Loading…
Reference in New Issue