Jump to content
  • Advertisement

Archived

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

Triangle list or triangle strip?

This topic is 6651 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

Could anyone tell me what is better in DX7? I think the triangle strip is faster because the vertices is less. I don''t know why the triangle list is faster in my program!!! Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Read this: DirectX Developer Faq, especially on vertex buffers.

DirectX is optimized for batch rendering, i.e. you should try to render as much as possible with every call to DrawPrimitive() or DrawIndexedPrimitive(). Triangle strips are faster than triangle lists for an equal number of triangles. However, with triangle strips you may have to make several calls to DrawPrimitive(), but with triangle lists all triangles can be drawn with one call.

(As a sidenote, several trianglestrips can be concatenated by adding some degenerate triangles between them. Personally though, I don''t like this approach.)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!