VB->Optimize question

Started by
0 comments, last by BigCarlito 24 years, 4 months ago
Here's one for the D3D gurus: I have several small objects (actually they're bodyparts) whose geometry doesn't change throughout the application. I thought this would be ideal for optimized vertex buffers. Can anyone tell me (since I'm to lazy to actually implement both and see for myself) if the optimize command would work better if I lumped all of these objects (less than 150 tris each) into one big VB or used seperate VB's for each?? Thanks!
Advertisement
You should definitely optimize your static geometry, this is a win especially if you're using a AMD processor with 3DNow! or an Intel Pentium III.

VB changes can be expensive, since they are a driver transition. They are even more expensive on Win2K.

I'd recommend lumping them into a single VB, of size up to 1000 vertices, or 64K total vertex buffer size, in bytes. Batch rendering of these objects by VB, and use the new vertex range arguments to avoid retransformation, when possible.

This topic is closed to new replies.

Advertisement