9. Optimization

This chapter identifies optimization strategies to improve OpenGL ES 2.0 rendering performance for iOS devices. The first technique described in the section, “Render as Little as Possible,” typically provides the largest benefit. Each subsequent technique provides diminishing returns but might still make the difference between “too slow” and “fast enough” in some cases.

For embedded devices, optimization includes dimensions beyond just the speed of rendering. For example, users might prefer a 30Hz update rate that preserves battery life over a 60Hz rate that makes the device guzzle from the battery. Consider a reasonable balance for each application. Above all, don’t render anything unless it benefits the user. There’s no benefit ...

Get Learning OpenGL ES for iOS: A Hands-On Guide to Modern 3D Graphics Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.