1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[d3d11] Implement D3D11_MAP_FLAG_DO_NOT_WAIT

Improves framerate in Dishonored 2 by up to 50%.
This commit is contained in:
Philip Rebohle 2018-03-22 11:02:14 +01:00
parent 9215cfdcf2
commit 53d557c2db
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -347,6 +347,9 @@ namespace dxvk {
SynchronizeCsThread(); SynchronizeCsThread();
if (Resource->isInUse()) { if (Resource->isInUse()) {
if (MapFlags & D3D11_MAP_FLAG_DO_NOT_WAIT)
return false;
// TODO implement properly in DxvkDevice // TODO implement properly in DxvkDevice
while (Resource->isInUse()) while (Resource->isInUse())
std::this_thread::yield(); std::this_thread::yield();