BishGada
06-11-2007, 09:35 PM
Hi,
I had expirienced a phenomenon with the GLSL on nVidia board.
I have code something like that:
if(condition)
{
// some heavy calculations
}
now when the condition applies and when it doesn't apply I get the same performance (FPS).
when I remove the conditional code I get much higher performance.
my guess is that the compiled code makes the conditional calculations anyway, but don't use the results.
any idea how to check the compiled code and/or how to control compilation optimizations?
thanks,
Guy.
I had expirienced a phenomenon with the GLSL on nVidia board.
I have code something like that:
if(condition)
{
// some heavy calculations
}
now when the condition applies and when it doesn't apply I get the same performance (FPS).
when I remove the conditional code I get much higher performance.
my guess is that the compiled code makes the conditional calculations anyway, but don't use the results.
any idea how to check the compiled code and/or how to control compilation optimizations?
thanks,
Guy.