mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
Revert the revert
Revert "Trying to hunt the CPU spikes recently experienced."
This reverts commit ac73e70293.
This commit is contained in:
@@ -1615,6 +1615,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
{
|
||||
IncomingPacket incomingPacket = null;
|
||||
|
||||
/*
|
||||
// HACK: This is a test to try and rate limit packet handling on Mono.
|
||||
// If it works, a more elegant solution can be devised
|
||||
if (Util.FireAndForgetCount() < 2)
|
||||
@@ -1622,6 +1623,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
//m_log.Debug("[LLUDPSERVER]: Incoming packet handler is sleeping");
|
||||
Thread.Sleep(30);
|
||||
}
|
||||
*/
|
||||
|
||||
if (packetInbox.Dequeue(100, ref incomingPacket))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user