Sign in to follow this  
AvengingRage

Quad Strips and Texture Mapping

Recommended Posts

Hi everyone, I have what should be a quick question. I am currently programming a Rubik's Cube game , and my DrawCub() function draws each quad separately. I've had a few complaints about how slowly the game runs when I send it to other people for testing, and I was thinking of speeding it up by using GL_QUAD_STRIPS instead of drawing a bunch of separate quads for each face, since this will reduce the number of calls to GlVertex3f I make. My problem is, I am texture mapping the quads. Since I have to specify texture coordinates for each vertex, can I use quad strips or does it have to be the way I've already done? Thanks!

Share this post


Link to post
Share on other sites
Yes, you can use quadstrips. However, I question if you're drawing enough triangles for this to make a difference. If anything, I suspect you'll end up losing performance by using quadstrips due to more glBegin and glEnd calls as you'll need to switch back to triangles or quads in order to completely render a cube.

I suspect your problem lies elsewhere. If you post your code perhaps I could find out if that's the case.

Share this post


Link to post
Share on other sites
You are probably rendering something like 50 polygons which isn't the cause of the low performance.
Ask your users to update their video drivers and ask them what hw they are running.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this