Jump to content
  • Advertisement
Sign in to follow this  
taras_g

Data transfer from DSPOOL_DEFAULT surface to DSPOOL_DEFAULT surface

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

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
Advertisement
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!