PDA

View Full Version : is it running in software mode?



Laif
05-02-2005, 03:19 AM
My fragment programs seem to run extremely slow. How can I detect whether they run in software mode or not?

surfel17
05-02-2005, 07:28 AM
You can get the compiler log and linker log by calling certain gl extension functions.

It is very likely that your code is running in software. It happens to me many times, even if the log says the shader is running in hardware. Some common causes are:

1. Unsupported language element, as gl_FragCoord in fragment shader
2. Too many instructions for ALU
3. Number of interpolants exceeded
4. Vertex shader will run in software if fragment is running in software, no matter how simple the vertex shader is. And vice versa