Archived

This topic is now archived and is closed to further replies.

Draigan

Dynamic Vertex/Index Buffers

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites