Search code examples
openglculling

Is there a significant performance difference between using GL_CW in favour of GL_CCW with backface culling?


Let's say I enable backface culling using:

glEnable(GL_CULL_FACE);

I can configure which side faces are culled on using either of these:

glFrontFace(GL_CW);
glFrontFace(GL_CCW);

Is there a significant performance difference if I choose one over the other?

My hunch says it doesn't matter because this should only involve checking against a different sign when taking the scalar product. Though perhaps this is hardware dependent too?


Solution

  • These functions are not linked to performance directly. It depends on how you define your mesh and these function are only information to culling functions to decide which winding to ignore. So it should not matter performance in anyway.