提交 06e01a00 编写于 作者: J jpark37

libobs-d3d11: Disable NV12 usage for Intel

NV12 GPU copies to staging textures for CPU read take a ridiculously
long time on my integrated Intel GPU. Using R8/R8G8 instead seems to be
a huge speed-up.

Intel HD Graphics 530, D3D11 query timings, SetStablePowerState

NV12: ~3268 us (minimum of wild timings)
R8/R8G8: ~781 us (most frequently occurring timing)
上级 bc3ed7bb
......@@ -390,6 +390,11 @@ void gs_device::InitDevice(uint32_t adapterIdx)
nv12Supported = false;
/* Intel CopyResource is very slow with NV12 */
if (desc.VendorId == 0x8086) {
return;
}
ComQIPtr<ID3D11Device1> d3d11_1(device);
if (!d3d11_1) {
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册