-
VertexBuffer question
In a prog that i'm making I have some particle stuff goin' on... Well, anyway I was wondering if it is faster to process the particles and render them with DrawPrimitiveUP or put them into a VertexBuffer and then draw them using DrawPrimitive. I would have to refill the vertexbuffer(becuase they would change pos) each time I render the particles so thats why I'm asking.
-
VertexBuffers are usefull if you need to render the same model more than 1 time (on different position for example)... also in DX8 you can directly stream vbuffers to the render pipeline, read the SDK for details
-
Drawing using DrawPrimitiveUP is ALWAYS slower. Use a VertexBuffer created with D3DUSAGE_DYNAMIC if you need to change the vertices every frame.
Z.