Jump to content
  • Advertisement
Sign in to follow this  
ibr_ozdemir

About using DrawPrimitiveUP

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

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!