Hi,
I’m trying my fragment program on my brand new GeForce FX 5600. I’m a bit disapointed at the performance I get since my program is quite simple.
For exemple, here is an extract of my code. Running it costs me about 10Hz.
TEMP textOut0;
TEX textOut0, fragment.texcoord[0], texture[0], 2D;
TEMP textOut1;
TEX textOut1, fragment.texcoord[1], texture[1], 2D;
ADD textOut1, textOut1, -0.5;
TEX textOut0, fragment.texcoord[0], texture[0], 2D;
ADD textOut0, textOut0, textOut1;
If I replace the last line by :
ADD textOut1, textOut0, textOut1;
then there is about no performance drop (it’s cheap, but unfortunately, it doesn’t do what I want).
The difference probably has something to do with registers or something like that. But I don’t quite understand exactly. Nailing that one down could probably help me to set up all of my fragment and vertex programs properly.
Thanks for the help in understanding this issue.