Original Post
Hi All
I am using DirectX9 to generate simple renderings which I then feed to some robot-vision algorithms. I am rendering two windows (a global overview and "what the robot sees" i.e. Robot POV).
Besides showing those two views, I need to pass on the robot POV to my vision algorithms. So the way I go about this is to use GetBackBuffer from the swapchain, and then I use LockRect to get access to the raw data bytes of the robot POV image.
But the problem is when I try to shuffle the bytes over from the backbuffer copy to my copy for the vision algorithms. It takes almost 200ms for a 640*480*4 byte image.
Does anyone have a better solution on how I would be albe to shuffle over my Directx9 generated images to the PC side where I don''t have that bottle-neck?
Cheers
Bart :-)