diff options
author | Justin Clark-Casey (justincc) | 2014-09-16 18:32:07 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:18:38 +0000 |
commit | 23561239ee411f3998792fc32d2ae4d037960cf0 (patch) | |
tree | 946b450f9e6e3e6875816c2118c2c7eefd0910ec /OpenSim/Region/Physics/BulletSPlugin | |
parent | Make outboudn and packet inbox handling threads highest priority. (diff) | |
download | opensim-SC_OLD-23561239ee411f3998792fc32d2ae4d037960cf0.zip opensim-SC_OLD-23561239ee411f3998792fc32d2ae4d037960cf0.tar.gz opensim-SC_OLD-23561239ee411f3998792fc32d2ae4d037960cf0.tar.bz2 opensim-SC_OLD-23561239ee411f3998792fc32d2ae4d037960cf0.tar.xz |
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
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSScene.cs | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
838 | 838 | ||
839 | public void BulletSPluginPhysicsThread() | 839 | public void BulletSPluginPhysicsThread() |
840 | { | 840 | { |
841 | Thread.CurrentThread.Priority = ThreadPriority.Highest; | ||
842 | |||
841 | while (m_initialized) | 843 | while (m_initialized) |
842 | { | 844 | { |
843 | int beginSimulationRealtimeMS = Util.EnvironmentTickCount(); | 845 | int beginSimulationRealtimeMS = Util.EnvironmentTickCount(); |