aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-09-09 18:26:41 +0100
committerJustin Clark-Casey (justincc)2014-11-25 23:18:38 +0000
commit9fb3065d336d1907b5946c30010c9066e99e7597 (patch)
tree035375916086a344e99a3e2a6fbfeb9fa19421c2 /OpenSim/Region/Framework
parentAdd experimental job engine to see if queueing some existing async work durin... (diff)
downloadopensim-SC_OLD-9fb3065d336d1907b5946c30010c9066e99e7597.zip
opensim-SC_OLD-9fb3065d336d1907b5946c30010c9066e99e7597.tar.gz
opensim-SC_OLD-9fb3065d336d1907b5946c30010c9066e99e7597.tar.bz2
opensim-SC_OLD-9fb3065d336d1907b5946c30010c9066e99e7597.tar.xz
Temporarily add root agent rez attachments work to job engine if it is running rather than as a fire and forget.
Experiment to see if serializing attachment rez and send initial data jobs improves other parts of sim performance.
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 2718785..afe6daa 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1228,10 +1228,14 @@ namespace OpenSim.Region.Framework.Scenes
1228 // viewers without (e.g. v1 viewers) will not, so we still need to make this call. 1228 // viewers without (e.g. v1 viewers) will not, so we still need to make this call.
1229 if (Scene.AttachmentsModule != null) 1229 if (Scene.AttachmentsModule != null)
1230 { 1230 {
1231 Util.FireAndForget(o => 1231 if (Watchdog.JobEngine.IsRunning)
1232 { 1232 Watchdog.RunWhenPossible(
1233 Scene.AttachmentsModule.RezAttachments(this); 1233 "RezAttachments",
1234 }); 1234 o => Scene.AttachmentsModule.RezAttachments(this),
1235 string.Format("Rez attachments for {0} in {1}", Name, Scene.Name),
1236 null);
1237 else
1238 Util.FireAndForget(o => Scene.AttachmentsModule.RezAttachments(this));
1235 } 1239 }
1236 } 1240 }
1237 else 1241 else