Jump to content
  • Advertisement
Sign in to follow this  
Dark_Light

Drawing Primitives (penalty or no penalty)

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

Ok people I know all about Vertex Buffer and Index buffers, I know all about locking and all about the penalties involved however!! Now I cant seem to get a good sentence to explain this so an example may help: Create a device… Create a static Vertex buffer (length 100) Create a static Index buffer (Length 300) Set the device to use the vertex buffer Set the device to use the index buffer. Draw a set in index primitives (First 80) Draw a set in index primitives (Last 20) Ok so is there a penalty for the second Draw?? Even tho I am not changing any device setting?? Thanks

Share this post


Link to post
Share on other sites
Advertisement
There's no state change happening, so there shouldn't be any performance hit beyond that of the actual rendering. As always, this is subject to the quality of the drivers in question.

Share this post


Link to post
Share on other sites
Normally I would draw them all at once but it’s more like

Draw basic stuff
If Something Then
Draw some more
Else
Don’t bother
End If

So I am planning to stick the (more stuff) in the same vertex and index buffer just so I don’t have to make any device changes. Plus the (more stuff) is very small so I don’t really want to send a tiny VB or IB over the AGP when I could have just stuck it to the end of the last one I sent.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!