From 23561239ee411f3998792fc32d2ae4d037960cf0 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 16 Sep 2014 18:32:07 +0100 Subject: 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 --- OpenSim/Region/Physics/BulletSPlugin/BSScene.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region/Physics') diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs index a46c241..7d57751 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs @@ -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(); -- cgit v1.1