Uneven velocity with different FPS

Apr 29, 2009 at 7:58 PM
I tried yesterday to record a video with Fraps and my FPS went from the normal 60 to ~30, now I noticed that my space ship accelerates alot faster and get alot higher speeds then normal.

My function that calculates the speed looks like this:

private

 

void Thrust(float elapsed)
{
   
float forceAmount = 10000;
    Velocity.X = (
float)Math.Cos(bodyPlayer.Rotation) * forceAmount * elapsed;
    Velocity.Y = (
float)Math.Sin(bodyPlayer.Rotation) * forceAmount * elapsed;
    bodyPlayer.ApplyForce(
ref Velocity);
}

Is this not the recommended way to do, first multiply with elapsed?

Thanks

 

Apr 29, 2009 at 9:51 PM

I may be wrong as I haven't used Fraps in a while, but I think there is something in the Options menu in Fraps to select the FPS to record at.

Have you checked this?

Apr 30, 2009 at 5:16 PM
Thanks for your reply sterlingware, I know which option you mean but it's not the fps fraps record at that is my problem.
My problem is that when my game runs at lower fps the physics behave differently then before even when I multiply the velocity be time elapsed.