Jump to content
  • Advertisement
Sign in to follow this  
parasolstars

Stupid mistake of the day

This topic is 4859 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.

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!