niktehpui
niktehpui

Reputation: 556

GPU Timings with OpenGL on MacOSX

I need the timespan it took to deal with a set of drawing calls on the gpu-side. OpenGL 3.2+ has the "GL_ARB_timer_query"-extension for that. Unfortunately MacOSX still doesn;t support that extension.

How would you be able to measure time on the gpu-side, there must be an old-fashioned way or different way to do that.

Upvotes: 0

Views: 453

Answers (2)

Nicol Bolas
Nicol Bolas

Reputation: 473184

How would you be able to measure time on the gpu-side, there must be an old-fashioned way or different way to do that.

Why must there be one? Indeed, ARB_timer_query exists because there was never a way to time GPU operations. That's what it's for, and it is the only accurate mechanism OpenGL has to do it.

There have always been general profiling techniques, like changing resolution to test to see if you're "fillrate" bound or not and so forth. But there is no way to actually measure GPU processing time in OpenGL other than ARB_timer_query.

Upvotes: 2

ronag
ronag

Reputation: 51245

Won't glFinish() with a host side timer work?

Upvotes: 1

Related Questions