Vertex Buffer

Started by
4 comments, last by Zeblar Nagrim 22 years, 8 months ago
How many vertex can a vertex buffer have in d3d8?
Advertisement
Depends on the device. Check the MaxPrimitiveCount/MaxVertexIndex caps of the devices D3DCAPS8 structure.

Bjørn.
We are boki. The rest is known.
But isn´t MaxPrimitiveCount how many vertex you can render with one call to DrawPrimitive?



Zeblar Nagrim, Lord of Chaos
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
We are boki. The rest is known.
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.
Profile both variants. I don''t know if its cheaper to refill a vb with several 1000 vertices then switching vbs.

Bjørn.
We are boki. The rest is known.

This topic is closed to new replies.

Advertisement