Jump to content
  • Advertisement


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


Noob q on primitives

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

I have a newbie DX8 question. Say I had about 50 quads I wanted to copy across the screen. They represent seperate game pieces if you''re wondering why I''d want to do this. What''s the most efficient way to do this? From what I''ve heard, passing so few verticies to 50 draw primitive calls isn''t the way to go. ---- Herb M. (mdfmKoRn) www.sky-meyg.com s3202@attbi.com

Share this post

Link to post
Share on other sites
With 50 quads it likely won''t make a difference.
10,000 quads is a different story.

Never-the-less, you could make one (modifiable) vertex buffer and render with one call as a triangle list. However, triangle list are the least efficient way to render vertex buffers. But you couldn''t use fans or strips with only one drawprimative call. If you made a call per quad, you could render them as either a strip or fan.

That''s actually an interesting question, because I have the same decision to make with my GUI (which uses screen aligned quads).

If the Dx DrawPrimative calls weren''t so expensive it''d be an easy choice. (Though, again, it probably doesn''t matter with 50 of them).

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!