Skip to content

Draft: d3d11: Optimize CPU -> GPU upload

Use D3D11_USAGE_DYNAMIC texture for CPU -> GPU upload. The D3D11_USAGE_DYNAMIC is designed for frequent CPU -> GPU upload and it might be more optimized for CPU-write & GPU-read pattern than D3D11_USAGE_STAGING depending on driver.

This optimization shows about 20% speed up with following pipeline (on Intel iGPU system)

gst-launch-1.0.exe videotestsrc num-buffers=100000 ! d3d11compositor ! fakesink
Edited by Seungha Yang

Merge request reports