From 6e6512eb4a9fb9fb88d5ec7f3968598f3012b356 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 3 Sep 2014 23:43:59 +0100 Subject: Make bulletsim thread alarm if no update for 5 seconds. The cost is minimal (also done for scene loop) at the benefit of telling us if this thread simply stops for some reason. --- OpenSim/Region/Physics/BulletSPlugin/BSScene.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Physics') diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs index f87c6c4..338593f 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs @@ -293,7 +293,7 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters string.Format("{0} ({1})", BulletEngineName, RegionName), ThreadPriority.Normal, true, - false); + true); } } @@ -861,6 +861,9 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters // TODO. DetailLog("{0},BulletSPluginPhysicsThread,longerThanRealtime={1}", BSScene.DetailLogZero, simulationTimeVsRealtimeDifferenceMS); } + + if (BSParam.UseSeparatePhysicsThread) + Watchdog.UpdateThread(); } } -- cgit v1.1