Jump to content
  • Advertisement
Sign in to follow this  
Freaker13

yann's sliding slot VRAM cache

This topic is 5148 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 all, i've read yann is using a sliding slot system to manage his vertices in VRAM. Do you need sometging like this in directX? I thought directx does already manage them for you. Or is this not fast enough?? thx in advance

Share this post


Link to post
Share on other sites
Advertisement
When you create the VB using D3DPOOL_MANAGED, Direct3D automatically copies the vertices to driver-accessible memory as needed. However, this requires a redundant copy of the whole thing in system RAM. For small size VB that's okay, but it's not feasible for really large VB.

In my last terrain project, the whole VB/IB whould take several hundreds of megabytes. It's no good if the whole thing reside in system RAM. So I just create a medium size managed VB, and used it as a cache of vertices from disk. Here you need your own management algorithm. The sliding slot idea is a good choice.

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!