2
\$\begingroup\$

This question already has an answer here:

What is the difference between framerate independent vs framerate dependent? Can you please give an example.

\$\endgroup\$

marked as duplicate by MichaelHouse Aug 5 '16 at 17:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    \$\begingroup\$ Our most viewed question sounds pretty similar. Does it help? \$\endgroup\$ – Anko Mar 16 '15 at 20:23
3
\$\begingroup\$

See the answer linked in the comments on your question for a detailed answer. Here is an undetailed answer:

Say a character is moving to the right along the x axis. You move it at 1 pixel per frame. In 60 frames, it will be 60 pixels to the right of where it started. If you are running at 60 FPS, it will arrive at its destination in 1 second. If you are running at 30 frames per second, it will take 2 seconds to reach its destination. This is generally not ideal. (Frame rate dependent)

If you multiply that pixels per frame by the duration of the frame (in milliseconds), it will arrive at its destination in the same amount of time, regardless of frame rate (FPS). (Frame rate independent)

\$\endgroup\$
  • \$\begingroup\$ How the independent frame rate affected to the velocity? if i set velocity for one object with damping = 0,3 . what should i do to get exactly the object location? I'm getting inconsistent result from setVelocity \$\endgroup\$ – TomSawyer Oct 5 '16 at 12:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.