Time step and slow motions problems

Hi,

I have a problem with the frequenzy of the simulation. Could someone help me?

I want to calculate the velocity and acceleration of the end effector of a link system using a Jacobian matrix, but the differece with the real values of the end effector body are noticiables. So I've tried to decrement the step size. But unfortunatelly the simulation runs very slow.

The simulation is very simple, a flat floor and 3 linked bodies, and my machine is fast (AMD 6 cores). With 200 Hz. all the bodies moves in slowmotion. So the question is: can a change in the timeStep from 60Hz. to 200Hz affect a lot and overload the cpu in this way? or I have something wrong in my project.

Sorry for my english

Thanks
Ok, I think that I found the problem.

The Test class process a lot of other things each step like render contacts, joints... so for a quick test I changed the step method with this hack:

Code:
currentTime = glutGet(GLUT_ELAPSED_TIME) / 1000.0f;
accumTime += currentTime - lastTime;
lastTime = currentTime;

while(accumTime >= m_timeStep)
{
    m_world->Step(m_timeStep, settings->velocityIterations, settings->positionIterations);

    accumTime -= m_timeStep;
}


With this change all works in a decent frame rate

Original thread: https://box2d.org/forum/viewtopic.php?t=7660