PDA

View Full Version : Counting seconds and moving



darie17
05-25-2008, 07:32 AM
Hi! I have a little problem moving my object in the scene. The idea is to move the object when the user presses 'S' (from 'start') on the keyboard. So, when 'S' is pressed, my object should move from the start to the end point in exactly 15 seconds. I tried some things, like using C's time.h library, but I didn't achieve much :(

Does anyone know how to move an object a specific number of seconds?

Thanks a lot!

Darie

fldz
05-25-2008, 03:03 PM
Can you turn off vsinc and go by framerate?
Just how exact are we talking here? :)

I use RDTSC but for games but I'm told it's like predicting ice-ages with a stop-watch.

Interesting timing components:

http://developer.nvidia.com/object/timer_function_performance.html

http://www.opengl.org/registry/specs/EXT/timer_query.txt

Eosie
05-25-2008, 03:31 PM
You might look at this:
http://softwarecommunity.intel.com/articles/eng/2589.htm