Today I learnt something new...

posted in Not dead...
Published May 06, 2006
Advertisement
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!
Next Entry Sunday....
0 likes 3 comments

Comments

siaspete
Thanks for the heads up!
May 06, 2006 03:16 PM
evolutional
Have you updated your GP2X firmware yet?
May 06, 2006 04:59 PM
rick_appleton
Yeah, I ran into this same issue about 1 1/2 years ago.
May 08, 2006 01:37 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

Advertisement