Fix slow simulation in PhysicsServerExample
Removed maxSteps to regain simulation speed
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user