About using DrawPrimitiveUP

Started by
0 comments, last by Namethatnobodyelsetook 17 years, 5 months ago
is there any "speed difference" these draw methods: 1- DrawPrimitiveUP for Every triangle 2- Every triangle in one DrawPrimitiveUP and do i have to make complex D3DPT_TRIANGLESTRIP,D3DPT_TRIANGLEFAN structure because D3DPT_TRIANGLELIST method is looking easier. thanks for help
Advertisement
Triangle lists are fine. Using DrawIndexedPrimitiveUP, you can also specify indices, which are useful to cut down the size of your vertex data for just about any geometry.

You'll want to draw as many triangles as possible per draw call.

The Draw*UP functions are slower than using vertex buffers and non-UP draw calls. Draw*UP calls are great for quick testing though, they're just not ideal for shipping software.

This topic is closed to new replies.

Advertisement