Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: glNormal3fv or glNormal3f

Hybrid View

  1. #1
    Intern Newbie
    Join Date
    Nov 2001
    Location
    The netherlands
    Posts
    46

    glNormal3fv or glNormal3f

    Is glNormal3fv faster than glNormal3f?

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    17

    Re: glNormal3fv or glNormal3f

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

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    3

    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.

  4. #4
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    3

    Re: glNormal3fv or glNormal3f

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

  5. #5
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    Belmont, CA, USA
    Posts
    224

    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
  •