Now uDD uses CopyResource() to copy the DDA texture to Unity one. This may be improved by updating only dirty rects area using CopySubresourceRegion(). I've attempted to implement this with the below code:
But this output flickering image and didn't update cursor area because the cursor was drawn without updating dirty rects. I understand the way to fix the cursor area (to keep the previous cursor area and include it and the current area into dirty rect) but I don't know the reason why I got a flickering image. More investigation will be needed.
Now uDD uses
CopyResource()
to copy the DDA texture to Unity one. This may be improved by updating only dirty rects area usingCopySubresourceRegion()
. I've attempted to implement this with the below code:But this output flickering image and didn't update cursor area because the cursor was drawn without updating dirty rects. I understand the way to fix the cursor area (to keep the previous cursor area and include it and the current area into dirty rect) but I don't know the reason why I got a flickering image. More investigation will be needed.