Jump to content
  • Advertisement
Sign in to follow this  
parasolstars

Stupid mistake of the day

This topic is 4613 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

Was doing some simple physics simulation. Ie., plane is supposed to rotate smoothly from one orientation to another. But my simulation was never smooth; keeps on going straight to the destination orientation once a key is pressed. From extensive debugging, all numbers are correct. It wasn't till hours later I realized the problem: My radeon x1800 video card is too fast for a <50 triangles simulation running at 300 x 300 resolution. I was getting perhaps several thousand frames a second; of course can't see the frames between start and end orientation. Things now work fine once implementing speed control. Ahh, I want to kick myself.

Share this post


Link to post
Share on other sites
Advertisement
NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER NEVER etc. EVER use not time-based rendering. I hate it.

Share this post


Link to post
Share on other sites
There's nothing wrong with fixed-timestep physics simulations; you just need to be careful about when you run updates. (Hint: If your timestep is 10ms and your frames are taking 5ms each, you don't want to run one physics update every frame).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!