Make BulletSim thread be ThreadPriority.Highest if running

Will only effect Windows or mono with a patch such as https://gist.github.com/justincc/31e52218d098529b4696 applied
For test purposes
ghosts
Justin Clark-Casey (justincc) 2014-09-16 18:32:07 +01:00
parent e6df61fbe9
commit 1e5c3f26f0
1 changed files with 2 additions and 0 deletions

View File

@ -838,6 +838,8 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
public void BulletSPluginPhysicsThread() public void BulletSPluginPhysicsThread()
{ {
Thread.CurrentThread.Priority = ThreadPriority.Highest;
while (m_initialized) while (m_initialized)
{ {
int beginSimulationRealtimeMS = Util.EnvironmentTickCount(); int beginSimulationRealtimeMS = Util.EnvironmentTickCount();