Advertisement Jump to content


This topic is now archived and is closed to further replies.


Wireframe mode

This topic is 5838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, I guess i have two questions, about performance. I noticed that when i render a heightmap in wireframe mode (glPolygonMode(GL_LINE)) there is a huge slowdown. Why is this so? Also, Something funny, i just upgraded from an old GeForceDDR to a GeForce4 MX and it seems that immediate mode rendering seems quite a bit slower. Most of the drawing in my code uses vertex arrays and either glDrawElements() or glDrawArrays(), but i have a couple that use just calls to glVertex3f() and the like, and they slow down the rendering by maybe 10 fps, way more than they did on my older card. Does this make any sense to anyone? Chris ~

Share this post

Link to post
Share on other sites
Ya, I get a huge slowdown too using glPolygonMode( GL_FRONT_AND_BACK, GL_LINE ): from 139 to 15 fps (and 30 fps with GL_POINT) . I''d like to know why, as well. ..... The lines get textured, so I figure that, in a way, its even more work since there are 4 lines per polygon (not counting shared lines..)

Share this post

Link to post
Share on other sites
i read in another thread somewhere that each line is actually a tri-strip... dunno how valid that is, and i cant search for the thread to see what came of that discussion..
it''s certainly explain your slowdown though.

one thing you might do to speed things up is to make sure you disable GL_LINE_SMOOTH and GL_POINT_SMOOTH.
these are costly anti-aliasing calculations.. i lose 30fps in my
game with them enabled :\

;another space monkey;
[ Forced Evolution Studios ]


Do NOT let Dr. Mario touch your genitals. He is not a real doctor!

Share this post

Link to post
Share on other sites
In the older geforces, lines were rendered twice in line mode (as far as i know).

I also heard that the lines are approximated by triangles..

just my 2c

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!