Jump to content
  • Advertisement
Sign in to follow this  
ChrisB_FX

[DX9] DepthStencilbuffer

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

Hi, in my application i have many different rendertarget with different sizes, formats and multisampling setting. So i was wondering what is better/faster: 1. one depthstencil buffer in the size of the biggest rendertarget which is used for all rendertargets if possible or 2. each rendertarget has its own depthstencil buffer. Does the size of the depth buffer actually influence the render speed? Is there a limit for the amounts of depthstencil buffers (beside the total vram limit)? thx ChrisB

Share this post


Link to post
Share on other sites
Advertisement
I would imagine storage space is likely to be your problem. Swapping the render targets around is generally an expensive operation anyway, so you'd probably get a more notable speed-up by changing the algorithm and minimizing the number of target changes rather than the actual operation itself.

The thing to watch out for when using a single larger buffer is contamination. You could get some very weird bugs that are very hard to track down if you rendered one frame (worse yet, some part of a reflection used in some small part of the final frame) with 'dirty' depth data from a previous render. So long as you check you've cleared the targets and configured correctly you should be fine though!


hth
Jack

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!