diff options
author | Adam Frisby | 2009-08-21 15:12:50 +1000 |
---|---|---|
committer | Adam Frisby | 2009-08-21 15:12:50 +1000 |
commit | f7c5eca978717c0adc16ad28b30b02678ba75892 (patch) | |
tree | e304f0d8dd1dd2383017b2807e26057ea0b7fc47 /OpenSim/Region/ScriptEngine | |
parent | * Make cache, actually cache. (diff) | |
download | opensim-SC_OLD-f7c5eca978717c0adc16ad28b30b02678ba75892.zip opensim-SC_OLD-f7c5eca978717c0adc16ad28b30b02678ba75892.tar.gz opensim-SC_OLD-f7c5eca978717c0adc16ad28b30b02678ba75892.tar.bz2 opensim-SC_OLD-f7c5eca978717c0adc16ad28b30b02678ba75892.tar.xz |
* Moves NPC Creation across AppDomains to prevent a major perfomance issue.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index fcfa9fc..6190349 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -31,6 +31,7 @@ using System.Collections.Generic; | |||
31 | using System.Runtime.Remoting.Lifetime; | 31 | using System.Runtime.Remoting.Lifetime; |
32 | using System.Text; | 32 | using System.Text; |
33 | using System.Net; | 33 | using System.Net; |
34 | using System.Threading; | ||
34 | using OpenMetaverse; | 35 | using OpenMetaverse; |
35 | using Nini.Config; | 36 | using Nini.Config; |
36 | using OpenSim; | 37 | using OpenSim; |
@@ -1766,6 +1767,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1766 | public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, LSL_Key cloneFrom) | 1767 | public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, LSL_Key cloneFrom) |
1767 | { | 1768 | { |
1768 | CheckThreatLevel(ThreatLevel.High, "osNpcCreate"); | 1769 | CheckThreatLevel(ThreatLevel.High, "osNpcCreate"); |
1770 | //QueueUserWorkItem | ||
1769 | 1771 | ||
1770 | INPCModule module = World.RequestModuleInterface<INPCModule>(); | 1772 | INPCModule module = World.RequestModuleInterface<INPCModule>(); |
1771 | if (module != null) | 1773 | if (module != null) |