mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 13:24:10 +01:00
[d3d11] Implement D3D11_MAP_FLAG_DO_NOT_WAIT
Improves framerate in Dishonored 2 by up to 50%.
This commit is contained in:
parent
9215cfdcf2
commit
53d557c2db
@ -347,6 +347,9 @@ namespace dxvk {
|
||||
SynchronizeCsThread();
|
||||
|
||||
if (Resource->isInUse()) {
|
||||
if (MapFlags & D3D11_MAP_FLAG_DO_NOT_WAIT)
|
||||
return false;
|
||||
|
||||
// TODO implement properly in DxvkDevice
|
||||
while (Resource->isInUse())
|
||||
std::this_thread::yield();
|
||||
|
Loading…
Reference in New Issue
Block a user