Sign in to follow this  

Data transfer from DSPOOL_DEFAULT surface to DSPOOL_DEFAULT surface

Recommended Posts

I have two DSPOOL_DEFAULT surfaces belonging to different D3D devices and I need to BitBlt data from one surface to another. What is the best way to do it? The only thing I can imagine is to lock both surfaces and call CopyMemory(). As far as I understand it is a data transfer from video memory to video memory. Will it take long the CPU to copy this kind of memory or will video driver/card detect and manage this transfer itself? Does it make any sense to lock small rectangles of the surfaces to gain some extra performance? Does IDirect3DDevice9 copy video memory to system memory during surface locks? Taras

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