Jump to content
  • Advertisement
Sign in to follow this  
Freaker13

yann's sliding slot VRAM cache

This topic is 5424 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!