Monday, November 25, 2013

OpenGL ES: Debugging a Frame on an iOS Device

OpenGL ES: Debugging a Frame on an iOS Device

Capture an OpenGL ES frame to analyze the OpenGL function calls that render the frame. Also view the OpenGL state at each OpenGL call.
  1. Run the app on an iOS device.
  2. In the debug bar, click the Capture Frame button.
    ../art/debugging_an_opengl_es_frame1_2x.png
  3. In the debug navigator, select an OpenGL ES call.
  4. In the content pane in the debug area, choose the type of OpenGL state information to list in the pane.
    ../art/debugging_an_opengl_es_frame4_2x.png
  5. Click the triangle to the left of the call.
  6. Examine the call stack to find the location of the call in the source code.
    ../art/debugging_an_opengl_es_frame6_2x.png

No comments:

Post a Comment