Jump to content
  • Advertisement
Sign in to follow this  
RavNaz

performance question regarding when to call DIP

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

Say you have a model, composed of multiple meshes. Is it better for performance to either: a) Upload the vert/index info to the VB and IB's and DIP straightaway or b) Upload all vert/index info to the VB and IB's, and DIP after everything has been processed?

Share this post


Link to post
Share on other sites
Advertisement
If I understand the question correctly, then I'd prefer option A. That way, the GPU can go to work on the data you've sent it while you work on the new data for it in parallel.

Share this post


Link to post
Share on other sites
that makes sense. however, it would result in more DIP calls and more locks per frame on IB's and VB's....???

Share this post


Link to post
Share on other sites
Oh. In that case, B. Fewer draw calls is better. (I thought it was the same number of DIPs either way.)

Share this post


Link to post
Share on other sites
Option (A) is better.
You want the CPU and GPU running at the same time if possible. You can upload vertex and index data to the GPU while it is drawing if you are careful with your lock flags, etc.

I don't completely understand your question though... if you have a mesh, its VB and IB should already in video memory? Unless you are using those silly managed resources :)

But the standard rule of thumb always applies: it depends on too many factors, the only way to be sure is testing and benchmarks. It could very easily be different for different vid. cards as well.

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.

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!