Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 

 Home / 3D Theory & Graphics / OpenGL speed Account Manager
 
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
 
kodekrazy

March 06, 2005, 11:06 AM

I need my OpenGL (windows) applications to run at the same speed on different computers.

 
Axel

March 06, 2005, 11:38 AM

That's a bad practice. Measure the frame time and do your movement calculations etc. dependent on that.

 
Scali

March 06, 2005, 02:01 PM

Yes, try to use absolute timing wherever possible, rather than relative timing.

If there's no way to do absolute timing, you could update the animation after X ms have passed. On fast PCs, you will only update the animation once every few frames, and on slow PCs, you will update the animation more than once per frame... but the actual visuals will be synchronized...
Ofcourse on REALLY slow PCs, you'll end up spending so much time updating the animation that you can never get to rendering a single frame :)

 
Axel

March 06, 2005, 03:22 PM

Or do your frame updates in a seperate Thread. IIRC Doom 3 does that.

 
This thread contains 4 messages.
 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.