Jump to content
  • Advertisement
Sign in to follow this  
CDProp

Double buffering dynamic vertex buffers?

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

Heya, I heard something one time about the possibility of double-buffering vertex buffers so that you don't cause a stall when locking it. Does anyone know how to do this? Or if it's done automatically for you for dynamic, write-only buffers? I wrote a particle system, and it hasn't really caused a frame rate drop or anything, but I figure this would be good information to have just in case I start using particles like they're going out of style.

Share this post


Link to post
Share on other sites
Advertisement
Dynamic buffers do this magically behind the scenes for you. There is a limit of something like 8 "rename buffers", which is why it's suggested that if you're locking multiple times per frame it's best with a larger buffer and usually locking with NOOVERWRITE rather than DISCARD.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!