Intel-Media-SDK / MediaSDK

The Intel® Media SDK
MIT License
926 stars 457 forks source link

Hello, I have a question about D3D11_MEMORY、 D3D9_MEMORY 、SYSTEM_MEMORY #2957

Open 1515guo opened 2 years ago

1515guo commented 2 years ago

system CPU:Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 GHz SYStem GPU: Intel(R) UHD Graphics 630 I read https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/tutorials/mediasdk-tutorials-readme.md say By moving from system to video memory implicit copies are eliminated, thus improving GPU load and overall performance. CPU utilization should also decrease slightly. Snipaste_2022-07-12_15-56-26

I build sample_encode.exe test D3D11_MEMORY、 D3D9_MEMORY 、SYSTEM_MEMORY difference

I use sample_encode.exe h264 -i 1080.yuv -hw -async 1 -vbr -b 2000 -w 1920 -h 1080 -o out.h264 -sys Snipaste_2022-07-12_16-00-14

Snipaste_2022-07-12_16-00-53

1515guo commented 2 years ago

sample_encode.exe h264 -i 1080.yuv -hw -async 1 -vbr -b 2000 -w 1920 -h 1080 -o out.h264 -d3d Snipaste_2022-07-12_16-03-37 Snipaste_2022-07-12_16-02-23

1515guo commented 2 years ago

sample_encode.exe h264 -i 1080.yuv -hw -async 1 -vbr -b 2000 -w 1920 -h 1080 -o out.h264 -d3d11 Snipaste_2022-07-12_16-04-38 Snipaste_2022-07-12_16-05-24

1515guo commented 2 years ago

Snipaste_2022-07-12_16-27-52

1515guo commented 2 years ago

I find use SYSTEM_MEMORY is performance and GPU 、CPU 、running times fast D3D11_MEMORY、 D3D9_MEMORY

1515guo commented 2 years ago

@dmitryermilov look forward to your reply

1515guo commented 2 years ago

why set default D3D11_MEMORY

1515guo commented 2 years ago

look forward to your reply @nagos @uartie @diablodale @ph0b