Jump to content
  • Advertisement
Sign in to follow this  
ibr_ozdemir

About using DrawPrimitiveUP

This topic is 4410 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!