diff --git a/examples/CommonInterfaces/CommonTimeWarpBase.h b/examples/CommonInterfaces/CommonTimeWarpBase.h index 09ecec039..3c01cba9e 100755 --- a/examples/CommonInterfaces/CommonTimeWarpBase.h +++ b/examples/CommonInterfaces/CommonTimeWarpBase.h @@ -124,7 +124,7 @@ static btScalar gPhysicsStepsPerSecond = 60.0f; // Default number of steps static double fixedPhysicsStepSizeSec = 1.0f / gPhysicsStepsPerSecond; // steps size in seconds static double fixedPhysicsStepSizeMilli = 1000.0f / gPhysicsStepsPerSecond; // step size in milliseconds -static btScalar gApplicationFrequency = 120.0f; // number of internal application ticks per second +static btScalar gApplicationFrequency = 60.0f; // number of internal application ticks per second static int gApplicationTick = 1000.0f / gApplicationFrequency; //ms static btScalar gFramesPerSecond = 30.0f; // number of frames per second diff --git a/examples/Evolution/NN3DWalkers.cpp b/examples/Evolution/NN3DWalkers.cpp index e79437f7f..06cb14c28 100755 --- a/examples/Evolution/NN3DWalkers.cpp +++ b/examples/Evolution/NN3DWalkers.cpp @@ -911,10 +911,10 @@ void NN3DWalkersExample::update(const btScalar timeSinceLastTick) { drawMarkings(); /**!< Draw markings on the ground */ -// if(m_Time > m_SpeedupTimestamp + 1.0f){ // print effective speedup -// b3Printf("Avg Effective speedup: %f real time",calculatePerformedSpeedup()); -// m_SpeedupTimestamp = m_Time; -// } + if(m_Time > m_SpeedupTimestamp + 2.0f){ // print effective speedup + b3Printf("Avg Effective speedup: %f real time",calculatePerformedSpeedup()); + m_SpeedupTimestamp = m_Time; + } } void NN3DWalkersExample::updateEvaluations(const btScalar timeSinceLastTick) {