Sign in to follow this  

Batching?

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

This topic is 4040 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this