Are shaders faster than fixed functionality

This is a discussion on Are shaders faster than fixed functionality within the Game Programming forums, part of the General Programming Boards category; I know shaders are capable of producing some very nice effects, but, what if for example, I did per-vertex lighting ...

  1. #1
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070

    Are shaders faster than fixed functionality

    I know shaders are capable of producing some very nice effects, but, what if for example, I did per-vertex lighting in a shader. Would it be faster than using default fixed functionality?

    -psychopath
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  2. #2

    Join Date
    May 2005
    Posts
    1,041
    This question cannot really be answered without a deeper understanding of how to actually perform the lighting. The ultimate answer is yes and no. You can certainly beat the default lighting routines but it may require shortcuts such as using lookup tables for sqrt. A lot of this depends on the driver you are trying to beat and the card you are writing the vertex shader for. There's just too many factors to give a single ultimate answer.
    I'm not immature, I'm refined in the opposite direction.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 09:18 PM
  2. How accurate is the following...
    By emeyer in forum C Programming
    Replies: 22
    Last Post: 12-07-2005, 12:07 PM
  3. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM
  4. fixed point / floating point
    By confuted in forum Game Programming
    Replies: 4
    Last Post: 08-13-2002, 02:25 PM
  5. Floating point faster than fixed-point
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-08-2001, 11:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21