• Advertisement

Archived

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

Vertex Buffer

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

Advertisement
Depends on the device. Check the MaxPrimitiveCount/MaxVertexIndex caps of the devices D3DCAPS8 structure.

Bjørn.

Share this post


Link to post
Share on other sites
But isn´t MaxPrimitiveCount how many vertex you can render with one call to DrawPrimitive?



Zeblar Nagrim, Lord of Chaos

Share this post


Link to post
Share on other sites
Yup, but "it''s usually not a good idea to make VBs any larger, since the driver has to find a free block of contiguous AGP memory to fit the buffer - hence it''s typically easier/faster when the VB is smaller. It''s sorta-documented in NVidia''s white-paper "The Efficient Use of Vertex Buffers" (it mentions a limit of 65535 vertices)." [1]

Bjørn.

[1] http://discuss.microsoft.com/SCRIPTS/WA-MSD.EXE?A2=ind0011E&L=DIRECTXDEV&P=R195

Share this post


Link to post
Share on other sites
ok. Thank you for your reply. In that case I must probably use a couple or two of those vertex buffer... Currently I have 200000 vertex in my scene at the same time. Or maybe I should use only one and refill it.

Share this post


Link to post
Share on other sites
Profile both variants. I don''t know if its cheaper to refill a vb with several 1000 vertices then switching vbs.

Bjørn.

Share this post


Link to post
Share on other sites

  • Advertisement