Original Post
Hi Since the other (proprietary)languages have different levels of compiler optimisation I looked into finding some for GLSL. I found the following for Nvidias compiler: #pragma optionNV(fastmath on) #pragma optionNV(fastprecision on) #pragma optionNV(ifcvt none) #pragma optionNV(inline all) #pragma optionNV(strict on) #pragma optionNV(unroll all) The speed up on some of my more complex shaders was profound. I had a ssao pass hitting a bottleneck and bringing my framerate down to 30fps, with the compiler optimisations alone I managed to get to get 60fps! Are there also Ati specific pragmas somewhere or some generic GLSL ones coming in with opengl4? I don't have a Ati card to test so maybe they might optimise automatically? I don't particularly want to make an Nvidia graphics card a requirement of my higher graphics settings. :p -Si