PDA

View Full Version : Measure frame time



Fynch
07-14-2005, 11:59 PM
Hi
I want to measure the rendering time of my scene. But using vertex/fragment shader and because of the pipeline, I can't simply measure the time of my draw () method. How can I measure exactly the time to render one frame?
Thanks

KRONOS
07-15-2005, 01:41 AM
beginTimer();

drawGL();
glFinish();

endTimer();

Fynch
07-15-2005, 05:12 AM
Originally posted by KRONOS:
beginTimer();

drawGL();
glFinish();

endTimer();Does glFinish also wait that the fragment/vertex program is finished?

KRONOS
07-15-2005, 10:06 AM
Originally posted by Fynch:
Does glFinish also wait that the fragment/vertex program is finished?Yes, glFinish doesn't return until previous GL calls terminate...