Is it running in software mode?

My fragment programs seem to run extremely slow. How can I detect whether they run in software mode or not?

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

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.