Frame timing for GLFW versus GLUT

Posted by linello on Game Development See other posts from Game Development or by linello
Published on 2012-11-28T20:16:56Z Indexed on 2012/11/28 23:16 UTC
Read the original article Hit count: 258

Filed under:
|
|
|

I need a library which ensures me that the timing between frames are more constant as possible during an experiment of visual psychophics.

This is usually done synchronizing the refresh rate of the screen with the main loop.

For example if my monitor runs at 60Hz I would like to specify that frequency to my framework.

For example if my gameloop is the following

void gameloop() {

// do some computation

printDeltaT(); Flip buffers }

I would like to have printed a constant time interval. Is it possible with GLFW?

© Game Development or respective owner

Related posts about opengl

Related posts about glut