Jump to content
  • Advertisement
Sign in to follow this  
mrheisenberg

Deferred rendering and deferred shading?

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

Would generating a command list from multiple threads with deferred contexts have any noticeable gain on performance with a deferred renderer?I mean you aren't changing shaders for every type of material and instead you use a branch or some other way of determining the material inside the lighting shader and shader binding is the heavies state change,right?

Share this post


Link to post
Share on other sites
Advertisement

If you've got 50,000 draw calls, it still might be using a decent amount of CPU cycles.

Put a timer around the part of your code that actually makes D3D calls. If it's too large, then it's worth optimizing.

Share this post


Link to post
Share on other sites

Who says you won't change shaders when you change materials? That would be assuming that every single material will fill the G-Buffer in the exact same way. As a really simple example, you might have a shader that does normal mapping and one that doesn't.

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!