diff options
author | Melanie | 2010-07-19 14:37:27 +0100 |
---|---|---|
committer | Melanie | 2010-07-19 14:37:27 +0100 |
commit | a974704a3e5a625fcb1fd6b286a02afa9d1b5206 (patch) | |
tree | beac907f34c391e6cb3b62097f1ad0d1e145dfac /OpenSim/Region/Framework/Scenes | |
parent | Revert "Thank you, Snoopy, for a patch to reduce sim script startup CPU usage" (diff) | |
download | opensim-SC_OLD-a974704a3e5a625fcb1fd6b286a02afa9d1b5206.zip opensim-SC_OLD-a974704a3e5a625fcb1fd6b286a02afa9d1b5206.tar.gz opensim-SC_OLD-a974704a3e5a625fcb1fd6b286a02afa9d1b5206.tar.bz2 opensim-SC_OLD-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.cs | 2 |
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; | |||
31 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
32 | using System.Collections; | 32 | using System.Collections; |
33 | using System.Reflection; | 33 | using System.Reflection; |
34 | using System.Threading; | ||
34 | using OpenMetaverse; | 35 | using OpenMetaverse; |
35 | using log4net; | 36 | using log4net; |
36 | using OpenSim.Framework; | 37 | using 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 | } |