View Full Version : glNormal3fv or glNormal3f
Is glNormal3fv faster than glNormal3f?
03-17-2002, 08:33 AM
Yes, because you only have the overhead of sending one argument to the function.
03-17-2002, 09:37 AM
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.
03-17-2002, 09:44 AM
Err, excuse me, that's glNormal3f. Of course, the same thing applies to any function taking 3 float arguments.
03-17-2002, 09:46 AM
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).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.