[c-host] dxgi: don't stall the GPU pipeline to map textures to ram

ID3D11DeviceContext_Map by default will force a CPU sync if the prior call to
CopyResource has not completed, this change defers the mapping and sets the
D3D11_MAP_FLAG_DO_NOT_WAIT when attempting to map the texture allowing the
capture to continue without incurring an expensive CPU/GPU sync.

A new tuneable has also been added

  * dxgi:maxTextures
This commit is contained in:
Geoffrey McRae
2019-05-26 23:36:17 +10:00
parent d07aa4b29e
commit 21b02efb4d
2 changed files with 65 additions and 24 deletions

View File

@@ -1 +1 @@
B1-rc2-1-g9f33043d17+1
B1-rc2-2-gd07aa4b29e+1