Because the compiler evaluates the #ifdef only once, whereas the if() gets executed for every pixel every frame as Hummel says. So the #ifdef is here faster by definition laugh.

TSG_Torsen:
No, no performance issues. My laptop is really crappy at processing stuff like shaders, but this goes fine. Must be said that it isn't exactly a large area of pp shading here tongue. My game is 352x512 pixels grin.

Last edited by Joozey; 12/16/10 19:09.

Click and join the 3dgs irc community!
Room: #3dgs