Next: 16.3.3 Optimizing Lighting Performance
Up: 16.3 Tuning the Geometry
Previous: 16.3.1 Use Expensive Modes
OpenGL implementations are often able to optimize transform operations if the matrix type is known. Follow these guidelines to achieve optimal transform rates:
- Use glLoadIdentity() to initialize a matrix, rather than loading your
own copy of the identity matrix.
- Use specific matrix calls such as glRotate\*(), glTranslate\*(), and
glScale\*() rather than composing your own rotation, translation, or scale
matrices and calling glLoadMatrix() and/or glMultMatrix().
David Blythe
Thu Jul 17 21:24:28 PDT 1997