• Advertisement
Sign in to follow this  
  • entries
    455
  • comments
    639
  • views
    423865

Today I learnt something new...

Sign in to follow this  

90 views

NEVER let the driver generate your GLSL fragment program for you, it blows something terrible.

The difference?
Well, the same program, same data set etc
- With driver generated fragment program; 222fps - 7.18MTri/sec
- With simple one line fragment program; 2866fps - 91.41MTri/sec

God knows why, but on the Cat6.2 drivers from ATI you take a terrible hit everytime you rebind the shader. When I just set the shader once at the start of the program (without a custom fragment shader) I get the same results as rebinding every frame with a custom fragment program.

Seriously, don't do it!
Sign in to follow this  


3 Comments


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement