Batching?
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.
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.
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.
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)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement