Jump to content
  • Advertisement

Archived

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

vrihai

Triangle Lists or Strips

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

This question mite have already been posted, but.. Is it faster to use a big indexed triangle list for a high poly object and draw it with a single call to DrawPrimitive or to triangle strips and drawing it with multiple Drawprimitive calls? Some people say strips are faster, but others say that DX is better off with lesser DrawPrimitive calls. Also, are indexed triangle strips slower than non-indexed ones?

Share this post


Link to post
Share on other sites
Advertisement
I would also like to know. It seems to me that you use index buffers for specific jobs, and triangle strips for regular jobs.. but I have no idea.

¬_¬

Share this post


Link to post
Share on other sites
indexed triangle strips are considered the best - and they can be quite fast. however, in other instances indexed triangle lists are better. it really just depends on the model and the stripping algorithms one uses. the best thing to do (but the one which also takes a bit more time) is to test out both with a model. whichever one performs better, use that approach for that particular model. therfore you end up with a hybrid draw pipe (at least on the call to DrawPrim). some models will be indexed strips and others will be indexed lists.

however, relating to your question of calls to DrawPrim - always minimize that! that call can be a huge performance bottleneck. the less calls the better.


-tim

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!