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:
parent
9215cfdcf2
commit
53d557c2db
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user