Sign in to follow this  
HippyNerd

Really slow GLSL array access

Recommended Posts

HippyNerd    122
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,

Share this post


Link to post
Share on other sites

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

Sign in to follow this