mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user