Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Checking for Optimal Data Types and Formats

To get the best performance, make sure your data is using an optimal data type and format combination. You won’t get the best performance otherwise.

Ideally, you’ll want to use:

GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV

This is the fastest data type and format combination. If it isn’t fast, you may have a problem with your driver.

If that’s not possible, you can often get acceptable performance from the following. Just make sure to test these combinations on a device-by-device basis:

GL_BGRA, GL_UNSIGNED_SHORT_1_5_5_5_REV

GL_YCBR_422_APPLE, GL_UNSIGNED_SHORT_8_8_REV_APPLE

OpenGL Profiler does not know what the inbound data format is. So you need to check the point at which your data gets uploaded by OpenGL by performing this steps:

  1. Select Collect Trace and Include Backtraces in the OpenGL Profiler window.

  2. Set a breakpoint where your data is uploaded.

  3. When your application breaks, click Call Stack in the Trace window.



< Previous PageNext Page > Hide TOC


Last updated: 2008-02-08




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice