Chapter 9
Performance 'n' Stuff
An ounce of performance is worth pounds of promises.
—Mae West
I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark.
—Muhammad Ali
When dealing with 3D worlds, performance is nearly always an issue because of the intensive mathematics required for even simple scenes. If all you want to render is an animated spinning triangle with adorable robots festooned upon its visage, then not to worry, but if you want to display the universe, then you'll always be concerned about performance.
Up until now, the exercises have been presented in a way to be reasonably clear (I hope) but not necessarily efficient. And unfortunately, efficient code is rarely the clearest ...
Get Pro OpenGL ES for Android 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.