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.
0.8-extended
Justin Clark-Casey (justincc) 2014-09-03 23:43:59 +01:00 committed by Justin Clark-Casey
parent 2f0dfb055c
commit 771011542a
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();
} }
} }