Jump to content
  • Advertisement
Sign in to follow this  
Endar

Batching?

This topic is 4254 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'm looking a little bit into batching triangles for the video card to draw. The general gist that I understand is that a video card is built to be able to render a certain amount of triangles very quickly. Exactly how do you go about setting up batching? I'm not looking for specific code for an API, just generally.

Share this post


Link to post
Share on other sites
Advertisement
Batching is generally not to difficult. Let's take a terrain: If you have a 256x256 vertex grid representing your terrain, you could try issuing a set of draw calls using batches of 32x32 vertices.

IIRC there's a number of PDFs on Nvidia's developer site that discuss this very issue - appropriate vertex counts, optimizing for the vertex cache, etc.

Share this post


Link to post
Share on other sites
Quote:
Original post by spartanx
Batching is generally not to difficult. Let's take a terrain: If you have a 256x256 vertex grid representing your terrain, you could try issuing a set of draw calls using batches of 32x32 vertices.

IIRC there's a number of PDFs on Nvidia's developer site that discuss this very issue - appropriate vertex counts, optimizing for the vertex cache, etc.




actually batch of 33x33 vertices...... (which eliminated power of 2 simplifications one way or another)

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!