mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* Plumbing and basic setting of the GetMesh Cap Throttler.
* Last step is to flip the throttle distribution.
This commit is contained in:
@@ -11883,6 +11883,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the throttles from values supplied by the client
|
||||
/// </summary>
|
||||
/// <param name="throttles"></param>
|
||||
public void SetAgentThrottleSilent(int throttle, int setting)
|
||||
{
|
||||
m_udpClient.ForceThrottleSetting(throttle,setting);
|
||||
//m_udpClient.SetThrottles(throttles);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get the current throttles for this client as a packed byte array
|
||||
/// </summary>
|
||||
|
||||
@@ -682,6 +682,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
if (m_nextOnQueueEmpty == 0)
|
||||
m_nextOnQueueEmpty = 1;
|
||||
}
|
||||
internal void ForceThrottleSetting(int throttle, int setting)
|
||||
{
|
||||
m_throttleCategories[throttle].RequestedDripRate = Math.Max(setting, LLUDPServer.MTU); ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts a <seealso cref="ThrottleOutPacketType"/> integer to a
|
||||
|
||||
Reference in New Issue
Block a user