Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Time Based Movement

This topic is 5298 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Howzit When implementing time based movement, it is better to put it around your whole frame cycle or around individual objects? Like around the whole frame or an animation? Shot

Share this post

Link to post
Share on other sites
If I understand your question correctly, here is how I approach this issue.

Obviously Putting timing around individual objects can be costly. So let us ignore this one.

Our question then is, what is more accurate. My thinking tells me both are the same. Hence I choose to put timing around the whole frame. Here is my reasoning.

When we use individual timing, we only get different instance times. The delta time for this object for next frame will be the same as the delta time for any other object. An object up in the list gets an earlier instance time, however since thre are so many objects below it in the list, there is a fixed delay before its turn comes up again in the next frame. An obejct down in the list gets a later instance time, however in next frame, its turn comes up quite late (becuause of other objects above it in the list). Hence the delta times that each object computes will turn out to be the same (given real-world accuracies and tolerances).

Further using same time will hide the effects of delays in some

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!