haigu
05-11-2001, 03:11 AM
I've come across a question: suppose hardware T&L is not available, then is it faster to let OpenGL do the Rotate, Translate, Scale stuff?
A guy has made a test, comparing the two methods
1.
glRotatef(...);
2.
myMatrix44.Rotate(...);
glMultMatrix((GLfloat*)&myMatrix44);
method 2 is a little bit faster than 1.
why does this happen?
and if OpenGL is not the fastest, then why do all the books recommend us to let OGL doing the matrix calculation for speed purpose?
A guy has made a test, comparing the two methods
1.
glRotatef(...);
2.
myMatrix44.Rotate(...);
glMultMatrix((GLfloat*)&myMatrix44);
method 2 is a little bit faster than 1.
why does this happen?
and if OpenGL is not the fastest, then why do all the books recommend us to let OGL doing the matrix calculation for speed purpose?