Difference between revisions of "VOGL"

From ArchWiki
Jump to navigation Jump to search
(Added --vogl_debug --vogl_dump_stats parameters to match the example of the github wiki)
Line 1: Line 1:
{{Related articles start}}
{{Related articles start}}
{{Related|Step By Step Debugging Guide}}
{{Related|Step By Step Debugging Guide}}

Revision as of 22:07, 15 March 2014

VOGL is a tool created by Valve Software and RAD Game Tools for OpenGL debugging. It is able to capture, replay and inspect OpenGL call tracefiles.


The development version vogl-gitAUR is available on the AUR.

Capturing a tracefile

To obtain a tracefile run the following command.

$ VOGL_CMD_LINE="--vogl_debug --vogl_dump_stats --vogl_tracefile /tmp/vogltrace.bin" LD_PRELOAD=/usr/lib/libvogltrace64.so <command>

Where <command> is the command to launch your OpenGL application. Your tracefile will be created in your /tmp directory.

Warning: These files get big very fast! 1-2 minutes result in about 1GB of captured calls.

VOGL ships with various OpenGL samples that can be used for testing in its sources. These are not part of the package but they can be built manually. You can also grab the latest OpenGL samples from the OpenGL Samples Pack or from OpenGL SuperBible.

Replaying the tracefile

To replay your trace launch the voglreplayer from within your vogl directory.

$ voglreplay64 /tmp/vogltrace.bin

Inspecting the tracefile

Launch the vogleditor binary and open the tracefile.bin with the "File - Open Trace" menu.

$ vogleditor64


Read about the limitations on this blog post.