diff options
author | Melanie | 2010-07-19 14:37:27 +0100 |
---|---|---|
committer | Diva Canto | 2010-07-20 13:25:35 -0700 |
commit | 128da70d15b4d432cd717939c112c1b8319d874d (patch) | |
tree | faf81e486289b6babd0b5881b362a1596db2bf37 | |
parent | Revert "Thank you, Snoopy, for a patch to reduce sim script startup CPU usage" (diff) | |
download | opensim-SC-128da70d15b4d432cd717939c112c1b8319d874d.zip opensim-SC-128da70d15b4d432cd717939c112c1b8319d874d.tar.gz opensim-SC-128da70d15b4d432cd717939c112c1b8319d874d.tar.bz2 opensim-SC-128da70d15b4d432cd717939c112c1b8319d874d.tar.xz |
re-add the sleep lost in the revert.
-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 866bb6e..c5a4cf6 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 | } |