NSConf Notes: Hard and Fast OpenGL
by john on Feb.21, 2010, under Uncategorized
Jeff LaMarche
http://iphonedevelopment.blogspot.com
A bit of OpenGL history.
OpenGL ES removes parts that were redundant or killed performance. This includes direct mode, which was great for learing the API. Now you have to jump into the deep end.
Static inline functions for small bits of logic that are called frequently.
Avoid allocating memory a lot. Reuse memory between loop runs when possible.
Use the “f” versions of math.h functions so sqrtf() instead of sqrt() which expects and returns doubles.
Make universal apps to enable Thumb for Armv7 and disable it for Armv6.
Default is counter-clockwise winding.