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
mb-throttle-test
Justin Clark-Casey (justincc) 2014-09-16 18:32:07 +01:00
parent cfc4055991
commit 23561239ee
1 changed files with 2 additions and 0 deletions

View File

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