PDA

View Full Version : Matrix Speed



Noah
12-29-2000, 03:32 PM
How fast is glGetDoublev GL_MODELVIEW_MATRIX?

Will I gain speed if I get the modelview matrix, do all my multiplications, and glLoadMatrix it back in instead of doing translate, rotate, scale operations?

rangaroek
01-03-2001, 07:44 AM
Originally posted by Noah:
How fast is glGetDoublev GL_MODELVIEW_MATRIX?

Will I gain speed if I get the modelview matrix, do all my multiplications, and glLoadMatrix it back in instead of doing translate, rotate, scale operations?

It depends :-)
You can define your functions as inline,
no loops. The size of your app will be greater, but the performance also ...
If your target is G4 you can use the Altivec Unit ....
adios ...