Quote:Original post by Ravuya
The line rendering mode is very slow; I suspect it's done in software.
But it shouldn't be. There must be something wrong with the states...
Quote:Original post by Ravuya
The line rendering mode is very slow; I suspect it's done in software.
Quote:Original post by gold
Are you specifying LINE mode for both front and back facing triangles? I can imagine scenarios where mixed polygon modes will slow down - but if you specify LINE for both faces, it should remain on the fast path.
if(gRenderMode)glPolygonMode(GL_FRONT, GL_FILL); //GL_FRONT_AND_BACKelseglPolygonMode(GL_FRONT, GL_LINE);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST); glHint(GL_TEXTURE_COMPRESSION_HINT, GL_FASTEST);
Quote:Original post by zedzeek
as has been mentioned glPolygonMode(GL_FRONT, GL_LINE); + glPolygonMode(GL_BACK, GL_FILL); might be slow so use GL_FRONT_AND_BACK
Quote:Original post by Ravuya
The line rendering mode is very slow; I suspect it's done in software.