Really slow GLSL array access
Is it just me, or is accessing an array with a non-constant value in GLSL extremely slow.
float testArray[10];
int index = 8;
float blah = testArray[index];
This brings my framerate down to about 0.5 FPS (on a x800xt pe)
Equivelent code runs at a fine speed in Cg. (And I assumed the code would get compiled to very simmilar assembly anyway)
Any ideas?
thanks,
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement