View Full Version : measure openGL app performance
12-02-2008, 06:34 AM
please do you know a tool/method? that would help me to measure/compare openGL (or any other 3d graphic application) processing time?
For example I want to check the difference 'in performance' of using 'vertex arrays' vs. 'buffer objects'?
many thanks in advance...
12-02-2008, 06:46 AM
i know a tiny benchmark for vertices. click (http://www.codesampler.com/oglsrc/oglsrc_9.htm#ogl_benchmark_sphere)
other then that gDEBugger seems to show cpu/gpu workload.
maybe write own little benchmark program?
12-03-2008, 05:18 AM
If you mount up enough batches you can just use your systems timing functions (e.g. gettimeofday), though you'll probably want to do a glFinish to ensure that you don't miss timing some batches that are still in the pipe. I'd mount up a hundred ms or so of work to time so you can get good timing results.
A way around that glFinish is to use EXT_timer_query (glBeginQuery/glEndQuery/etc.) to pass timing events alongside your events in the GPU pipe. Haven't used it myself.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.