Original Post
How do you get the fps in which your opengl api is running?
Quote:
Krohm:
Now that linux has nice soft-realtime features, maybe using a bunch of sleeping threads could give you what you need but I'm not sure.
Quote:
Original post by Krohm
Hard truth: there's no way to estimate per-frame delta in a cross-platform way.
Quote:
Original post by nefthy
linux can give you time in nano seconds (the exact resolution can be queried with clock_getres) which should be more than enough for mesuring the time a frame took to render.
see man 3 clock_gettime fore details
also gettimeofday gives you time in seconds and microseconds. This might be enough for some aplications
No need for threads, devices, etc.
Quote:
Original post by lc_overlord
Sorry to burst your bubble here a little, there is a way, or atleast will be.
Nvidia has a new extention that can mesure time on the gpu in nanoseconds.
It's called EXT_timer_query and you can read about it on page 41 in
http://developer.nvidia.com/object/opengl-nvidia-extensions-gdc-2006.html
this page is good to
http://developer.nvidia.com/object/gdc-2006-presentations.html
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more