简体   繁体   中英

Retrieve number of Draw Calls in OpenGL GLSL

I know that i can get many GPU Specific Information with the function glGetIntegerv() . How about Number of Draw-Calls?

By the way, when a Guru could give more Info about draw-calls, would be very nice!

You could maybe use something like this: http://www.opengl.org/sdk/tools/BuGLe/

I have not tried BuGLe, so can't say how effective it is.

Alternatively you can count the number of calls you make to eg glDrawElements and build up per-frame stats yourself.

Or use an OpenGL profiler. If you are using a Mac, there's one on OSX which will give you stats on all OpenGL calls .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM