Jump to content
  • Advertisement

Archived

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

abdulla

Processing Vertex Buffers in Commercial Code

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

In commercial code, would you see a vertex buffer being processed and put into a processed vertex buffer before being displayed? Or is there some common form of prior processing?

Share this post


Link to post
Share on other sites
Advertisement
Sometimes, but only in cases where:

a) the post transformed data needed to be read back.
b) there are a lot of render passes for the same vertices.

Usually though, ProcessVertices() isn''t such a good idea since it''s always done using the CPU so if you have a card which can do hardware vertex processing (Hardware T&L and/or Vertex shaders), you''re ignoring its main advantage!

The fastest way except in exceptions a and b above is always to Draw*Primitive*() from an *UNTRANSFORMED* buffer and let the API/hardware worry about the vertex T&L.

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

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!