Sign in to follow this  
Hiyar

Lock texture

Recommended Posts

Depends on the driver.

What's most likely is that if you have a 256x256 texture, and you lock the top left 64x64 portion, you'll get given back a locked rect with a pitch of 256 pixels (I.e. the driver will give you back a pointer to the full texture rather than copying a region to a temporary buffer), but when you unlock that texture, the driver will only copy 64 pixels from each scanline.

So short answer is that yes, it's likely that locking only the region you need is faster, but it ultimately depends on the driver.

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