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 purposesghosts
parent
e6df61fbe9
commit
1e5c3f26f0
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue