Fix slow simulation in PhysicsServerExample

Removed maxSteps to regain simulation speed
This commit is contained in:
Takuya NAKAOKA
2015-10-20 14:51:40 +09:00
parent 61a5328985
commit 3a11fff3ad

View File

@@ -170,9 +170,8 @@ void PhysicsServerExample::stepSimulation(float deltaTime)
{ {
btClock rtc; btClock rtc;
btScalar endTime = rtc.getTimeMilliseconds() + deltaTime*btScalar(800); btScalar endTime = rtc.getTimeMilliseconds() + deltaTime*btScalar(800);
int maxSteps = 10;
while (maxSteps-- && rtc.getTimeMilliseconds()<endTime) while (rtc.getTimeMilliseconds()<endTime)
{ {
m_physicsServer.processClientCommands(); m_physicsServer.processClientCommands();
} }