Pro OpenGL ES for iOS

(singke) #1

CHAPTER 9: Performance ’n’ Stuff (^305)
Figure 9-11. Picking data from the track pane
Extended Detail
This pane will display any extra details that might be available, such as stack traces,
sample statistics, recommendations, and so on. Currently, in Figure 9-8 (item 5), for
example, it is showing that a call to glMaterialfv() i s p a s s i n g t h e w r o n g p a r a m e t e r -----a
value that is valid on OpenGL but is unused on ES. That’s scary cool.
It can also point out many of the hints or nudges that Performance Detective can show,
sounding like a disappointed aunt tsk-tsking if you’re missing a chance to use a VBO or
if textures are not optimized.
Additional Context-Sensitive Settings
Depending on what tool you’ve selected, you’ll see a collection of additional controls to
help fine-tune the display and how OpenGL operates. The Overrides section will let you
turn on or off various parts of the pipeline. And you will usually receive many warnings in
the process, of the ‘‘Are you really sure you want to do this?’’ variety.
Detailed Pane
This is a frighteningly detailed look at various statistics and traces. The selector in the
toolbar contains several options:
„ API Expert: Displays things that Instruments thinks could be slowing
up execution. When running with the OpenGL ES tool, this will point
out many of the issues covered previously such as mipmap usage,
textures that could be compacted, and so on, with very wordy but
helpful tips on what to fix.
„ Frame Statistics: Lists version of the data displayed in the track pane,
along with other data that cannot be easily shown in a graph format.

Free download pdf