farshizzo
02-18-2006, 08:28 AM
I'm creating an OpenGL application that displays some stimulus to the user and measures their response time with some input device.
My question is, what is the most accurate way to determine when the stimulus has actually been rendered onto the monitor, without using any special hardware device?
From my understanding, glFinish() will block until all previous OpenGL commands have been executed. So should the following code be enough:
DrawStimulus();
SwapBuffers();
glFinish();
TimeOfDisplay = time();Any other suggestions?
Thanks
My question is, what is the most accurate way to determine when the stimulus has actually been rendered onto the monitor, without using any special hardware device?
From my understanding, glFinish() will block until all previous OpenGL commands have been executed. So should the following code be enough:
DrawStimulus();
SwapBuffers();
glFinish();
TimeOfDisplay = time();Any other suggestions?
Thanks