Skip to content

Commit

Permalink
[d3d9] Clear dirty box regardless of texture pool
Browse files Browse the repository at this point in the history
Otherwise we keep repacking and copying the whole texture
for every single lock. This causes performance problems
in Star Wars: The Old Republic.
  • Loading branch information
K0bin committed Jun 29, 2021
1 parent 318d927 commit 79bb8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4277,7 +4277,7 @@ namespace dxvk {

if (shouldFlush) {
this->FlushImage(pResource, Subresource);
if (pResource->IsManaged() && !pResource->IsAnySubresourceLocked())
if (!pResource->IsAnySubresourceLocked())
pResource->ClearDirtyBoxes();
}

Expand Down

0 comments on commit 79bb8d1

Please sign in to comment.