Jump to content

  • Log In with Google      Sign In   
  • Create Account

DirectX 11 Noobie Performance Question


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 jdub   Members   -  Reputation: 419

Like
0Likes
Like

Posted 28 November 2012 - 04:31 PM

I was wondering if there's a significant performance advantage to batching together the rendering of scene objects which use the same shader?
J.W.

Sponsor:

#2 Jason Z   Crossbones+   -  Reputation: 5028

Like
1Likes
Like

Posted 28 November 2012 - 08:10 PM

There is potentially a performance advantage. In general you can say that fewer draw calls should be better, but that all depends on what else is going on in your rendered scene. There isn't a straight answer for these type of questions really, you have to profile your application and see what works best in a given circumstance.

#3 Nik02   Crossbones+   -  Reputation: 2818

Like
0Likes
Like

Posted 30 November 2012 - 05:57 AM

Generally speaking, the fewer state changes, the better. Of course, if you use heavy logic to implement the batching itself, at some point it ceases to be worthwhile.

If you have a strong GPU but weak CPU (rough measures, I know), you likely benefit more from batching than with a system with strong CPU but relatively weak GPU. Each state change will consume CPU time, even though the setup time on the GPU hardware would be very fast.

Edited by Nik02, 30 November 2012 - 06:04 AM.

Niko Suni





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS