Jump to content
  • Advertisement
Sign in to follow this  
KaiserJohan

DX11 Quick DrawIndexed/DrawIndexedInstanced question

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

Just a really quick question - is there any overhead to using DrawIndexedInstanced even for geometry you just render once vs using DrawIndexed? Or is the details obfuscated by the graphics driver?

I would assume no but you never know :) 

Share this post


Link to post
Share on other sites
Advertisement

I would assume its only minor.  With instanced you need to load another buffer into the GPU to be referenced.   BUT, for single draw you need to reference a constant buffer with the related Matrix in it for transformation.

DrawInstanced although a little more work would be the best way forward, especially as you could pack all your instance matrices into 1 buffer for all your different models, and just reference an offset.

 

Edited by ErnieDingo

Share this post


Link to post
Share on other sites

FWIW in D3D12 they got rid of the non-instanced functions and now only have DrawIndexedInstanced / DrawInstanced :o

Share this post


Link to post
Share on other sites
Just now, Hodgman said:

FWIW in D3D12 they got rid of the non-instanced functions and now only have DrawIndexedInstanced / DrawInstanced

I would assume because non instanced just doesn't offer up much more, did they optimise DX 12 for instanced versions?

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!