mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +01:00
[d3d11] Do not forward D3D11_MAP_FLAG_DO_NOT_WAIT for mapped images
Workaround for a regression in The Witcher 3 that was introduced in commit 53d557c2db9e51c98696840e19aced94687be0ea. May have a significant negative impact on performance in some games.
This commit is contained in:
parent
b3aff7cd2e
commit
d9b1995cf0
@ -222,7 +222,10 @@ namespace dxvk {
|
||||
if (pResource->GetMapMode() == D3D11_COMMON_TEXTURE_MAP_MODE_DIRECT) {
|
||||
const VkImageType imageType = mappedImage->info().type;
|
||||
|
||||
// Wait for the resource to become available
|
||||
// Wait for the resource to become available. Forwarding
|
||||
// DO_NOT_WAIT would break The Witcher 3 for some reason.
|
||||
MapFlags &= ~D3D11_MAP_FLAG_DO_NOT_WAIT;
|
||||
|
||||
if (!WaitForResource(mappedImage, MapFlags))
|
||||
return DXGI_ERROR_WAS_STILL_DRAWING;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user