sdl_getTicks

Hi
can I use sdl_getTicks in a openGL timer app? Or would this be faster/slower
depending on the Hardware?
Thanks
Michael

Hi,

Why wouldn’t you be able to? Your application certainly would vary in
performance depending on the hardware, and that is precisely why you’d
use timers, if you wanted certain things to happen every X units of
time. Calls to opengl functionality can be made, as can calls to SDL
functions be made, in the same program, and each takes as long as it
requires. Only experimentation on different hardware will show you
what time ranges these functions take to execute, which will allow you
to adjust time constraints as required.

Hope this helps! If you want a possibly more detailed answer, perhaps
you could tell us what type of application you’re trying to make, and
how you want to control the flow of your program over time?

ChristianOn Thu, Jul 16, 2009 at 12:31 AM, Michael wrote:

Hi
can I use sdl_getTicks in a openGL timer app? Or would this be faster/slower
depending on the Hardware?
Thanks
Michael


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org