glNormal3fv or glNormal3f

Is glNormal3fv faster than glNormal3f?

Yes, because you only have the overhead of sending one argument to the function.

Whether a bunch of array accesses will cost more than sending more parameters depends on the calling convention.

On something like PowerPC, all the parameters to a glVertex3f call can easily fit in registers.

Err, excuse me, that’s glNormal3f. Of course, the same thing applies to any function taking 3 float arguments.

Yes, but that doesn’t always mean it’s better or faster to use glNormal3fv. The difference between the two functions is very very small. There might be a good reason to use glNormal3f that is more important than the the few nanoseconds you might save.

[This message has been edited by Jambolo (edited 03-17-2002).]