Next: 18.3.3 Optimizing Lighting Performance
Up: 18.3 Tuning the Geometry
Previous: 18.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
1999-08-06