Dynamic Vertex/Index Buffers

Started by
1 comment, last by Draigan 22 years, 2 months ago
How many of these should I be allocating? Should I just make one big one and let everything that needs dynamic vertex/index buffers use that or should I create one for each thing that needs a dynamic vertex/index buffer? All my vertices use the same format.
Advertisement
NVidia says having Vertex buffers with i size <= 64 Ko should be safe. So... if you need more, creaet multiple vertex buffers to do the job !

Cya


/* Bullmax */
-------------
Reality has many forms : good and evil, black and white, ying and yang.
/* Bullmax */-------------Reality has many forms : good and evil, black and white, yin and yang.
Check out D3DLOCK_DISCARD and other flags under IDirect3DVertexBuffer8::Lock. You might want to size your buffers so that you can take advantage of those flags.

If you have two buffers that are always locked at the same time with the same flags, you might make a single one out of them.
---visit #directxdev on afternet <- not just for directx, despite the name

This topic is closed to new replies.

Advertisement