Don't need to check separate physics status in bulletsim update since that method is only run for an indepndent thread anyway.

Also remove bulletsim monitored thread from watchdog on shutdown.
0.8-extended
Justin Clark-Casey (justincc) 2014-09-03 23:53:04 +01:00 committed by Justin Clark-Casey
parent 771011542a
commit badeefdf99
1 changed files with 3 additions and 2 deletions

View File

@ -862,9 +862,10 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
DetailLog("{0},BulletSPluginPhysicsThread,longerThanRealtime={1}", BSScene.DetailLogZero, simulationTimeVsRealtimeDifferenceMS); DetailLog("{0},BulletSPluginPhysicsThread,longerThanRealtime={1}", BSScene.DetailLogZero, simulationTimeVsRealtimeDifferenceMS);
} }
if (BSParam.UseSeparatePhysicsThread) Watchdog.UpdateThread();
Watchdog.UpdateThread();
} }
Watchdog.RemoveThread();
} }
#endregion // Simulation #endregion // Simulation