Sign in to follow this  

yann's sliding slot VRAM cache

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this