-
glNormal3fv or glNormal3f
Is glNormal3fv faster than glNormal3f?
-
Re: glNormal3fv or glNormal3f
Yes, because you only have the overhead of sending one argument to the function.
-
Re: glNormal3fv or glNormal3f
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.
-
Re: glNormal3fv or glNormal3f
Err, excuse me, that's glNormal3f. Of course, the same thing applies to any function taking 3 float arguments.
-
Junior Member
Regular Contributor
Re: glNormal3fv or glNormal3f
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).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules