Users expect OpenGL applications to have fluid graphics that display without glitches. The more complex the graphics in an OpenGL application are, the more important it is for you to optimize performance and use resources wisely. When an OpenGL application performs less optimally than desired, the cause is often not obvious. That’s where the OpenGL Profiler can be of value to you. After installing the Mac OS X Developer Tools, you can find OpenGL Profiler in /Developer/Applications/Graphics Tools.
This chapter:
Gives an overview of how OpenGL Profiler works
Shows how to set up your computer to use the profiler
Describes how to start a profiling session for an OpenGL application
Explains how to view and interpret data collected by the profiler
Tells how to look at and modify application resources and parameters
Before reading this chapter, you may want to read the “Improving Performance” chapter in OpenGL Programming Guide for Mac OS X. That chapter provides a list of best programming practices for OpenGL and shows how to gather baseline data using a few Apple tools in addition to OpenGL Profiler, including Shark. In fact, prior to using OpenGL Profiler, it’s best to start your analysis with Shark. The results from Shark will help you determine how to focus your efforts with OpenGL Profiler, or whether you even need to use the profiler application. It may be that your application’s problems are not due to your OpenGL code!
Overview
Before You Use OpenGL Profiler on a System
Starting a Profiling Session
Customizing Launch Settings
Viewing a Trace
Viewing Statistics
Viewing Pixel Format Context Parameters
Last updated: 2008-02-08