Merge pull request #496 from takuyanakaoka/fix-slow-simulation-in-shared-memory-example
Fix slow simulation in PhysicsServerExample
This commit is contained in:
@@ -170,9 +170,8 @@ void PhysicsServerExample::stepSimulation(float deltaTime)
|
||||
{
|
||||
btClock rtc;
|
||||
btScalar endTime = rtc.getTimeMilliseconds() + deltaTime*btScalar(800);
|
||||
int maxSteps = 10;
|
||||
|
||||
while (maxSteps-- && rtc.getTimeMilliseconds()<endTime)
|
||||
while (rtc.getTimeMilliseconds()<endTime)
|
||||
{
|
||||
m_physicsServer.processClientCommands();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user