aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorMelanie2010-07-19 14:37:27 +0100
committerMelanie2010-07-19 14:37:27 +0100
commita974704a3e5a625fcb1fd6b286a02afa9d1b5206 (patch)
treebeac907f34c391e6cb3b62097f1ad0d1e145dfac /OpenSim/Region/Framework/Scenes
parentRevert "Thank you, Snoopy, for a patch to reduce sim script startup CPU usage" (diff)
downloadopensim-SC-a974704a3e5a625fcb1fd6b286a02afa9d1b5206.zip
opensim-SC-a974704a3e5a625fcb1fd6b286a02afa9d1b5206.tar.gz
opensim-SC-a974704a3e5a625fcb1fd6b286a02afa9d1b5206.tar.bz2
opensim-SC-a974704a3e5a625fcb1fd6b286a02afa9d1b5206.tar.xz
re-add the sleep lost in the revert.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 46febe3..a6d2f76 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -31,6 +31,7 @@ using System.IO;
31using System.Collections.Generic; 31using System.Collections.Generic;
32using System.Collections; 32using System.Collections;
33using System.Reflection; 33using System.Reflection;
34using System.Threading;
34using OpenMetaverse; 35using OpenMetaverse;
35using log4net; 36using log4net;
36using OpenSim.Framework; 37using OpenSim.Framework;
@@ -200,6 +201,7 @@ namespace OpenSim.Region.Framework.Scenes
200 if ((int)InventoryType.LSL == item.InvType) 201 if ((int)InventoryType.LSL == item.InvType)
201 { 202 {
202 CreateScriptInstance(item, startParam, postOnRez, engine, stateSource); 203 CreateScriptInstance(item, startParam, postOnRez, engine, stateSource);
204 Thread.Sleep(10); // workaround for Mono cpu utilization > 100% bug
203 } 205 }
204 } 206 }
205 } 207 }