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
parent
2f0dfb055c
commit
771011542a
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue