Archived

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

dynamicman

does anybody know if DX does SetIndices optimization?

Recommended Posts

dynamicman    122
I currently have one big index buffer for all my models... Will anything slow down if I call.. SetIndices(ib, index); multiple times with the same ib (index buffer)? I seem to be constantly changing the index variable while keeping the same ib. Does this effect performance in any way? Does DX do optimizations for this? also... DrawIndexedPrimitive(type, startVertex, numberOfVertices, indexStart, primativeCount); it seems like startVertex and numberOfVertices don't really work.. I've tried mixing and matching and everything, but they don't seem to have an effect on rendering... Ideally, I would not call SetIndices(ib, index) multiple times and just set the startVertex and numberOfVertices every rendering pass... Are startVertex and numberOfVertices used that way? What is a quick way of jumping around the index buffer? I seemed to be comfused about how setIndices() and DrawIndexPrimatives work... I've checked Microsoft docs and I can't seem to find anything useful... Edited by - dynamicman on December 14, 2001 10:41:02 PM

Share this post


Link to post
Share on other sites
dynamicman    122
ok, well I found out that startVertex and numberOfVertices are only used for optimizations...

Is there any way of jumping around the index buffer without calling SetIndices?

Share this post


Link to post
Share on other sites