avoid MT crash in VR/physics server due to printf from separate thread.

add fps display in VR
use 1./240. internal substep for real-time physics sim in VR/physics server for more accurate robotics sim.
This commit is contained in:
erwin coumans
2016-08-18 21:43:43 -07:00
parent 91839cb274
commit a68c9ca845
3 changed files with 20 additions and 5 deletions

View File

@@ -2445,7 +2445,7 @@ void PhysicsServerCommandProcessor::stepSimulationRealTime(double dtInSec)
loadUrdf("plane.urdf", btVector3(0, 0, 0), btQuaternion(0, 0, 0, 1), true, true, &bodyId, &bufferServerToClient[0], bufferServerToClient.size());
}
m_data->m_dynamicsWorld->stepSimulation(dtInSec);
m_data->m_dynamicsWorld->stepSimulation(dtInSec,10,1./240.);
}
}