Sign in to follow this  
awside

About the vertex buffer 2

Recommended Posts

awside    122
Is it a good idea to lock down the buffer, hand it new data, then unlock it multiple times to give it new information during run time? Is this the way it was designed to work?

Share this post


Link to post
Share on other sites
circlesoft    1178
Locking a vertex or index buffer is an extremely costly operation (just about as costly as you can get with D3D). Therefore, you should avoid locking buffers at runtime.

However, sometimes it's neccesary. When you must lock a buffer, make sure you follow the performance optimizations outlined here.

Share this post


Link to post
Share on other sites

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