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
parent
29400538b7
commit
6e6512eb4a
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue