Jump to content
  • Advertisement
Sign in to follow this  
KaiserJohan

DX11 Quick DrawIndexed/DrawIndexedInstanced question

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!