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.
bullet-2.82^2
Justin Clark-Casey (justincc) 2014-09-03 23:43:59 +01:00
parent 29400538b7
commit 6e6512eb4a
1 changed files with 4 additions and 1 deletions

View File

@ -293,7 +293,7 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
string.Format("{0} ({1})", BulletEngineName, RegionName), string.Format("{0} ({1})", BulletEngineName, RegionName),
ThreadPriority.Normal, ThreadPriority.Normal,
true, true,
false); true);
} }
} }
@ -861,6 +861,9 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
// TODO. // TODO.
DetailLog("{0},BulletSPluginPhysicsThread,longerThanRealtime={1}", BSScene.DetailLogZero, simulationTimeVsRealtimeDifferenceMS); DetailLog("{0},BulletSPluginPhysicsThread,longerThanRealtime={1}", BSScene.DetailLogZero, simulationTimeVsRealtimeDifferenceMS);
} }
if (BSParam.UseSeparatePhysicsThread)
Watchdog.UpdateThread();
} }
} }