diff options
author | riperiperi <rhy3756547@hotmail.com> | 2020-02-06 21:49:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 08:49:26 +1100 |
commit | 6db16b411031b17ac171dac3899ce0488a1b40df (patch) | |
tree | 5e33452e60dc563db8e2bfbd32927c147baa5fa8 /Ryujinx.Graphics.Gpu/Engine/Methods.cs | |
parent | a906f2071cbe4caf53c697bcb7dfa91e3e7dcfae (diff) |
Only enumerate cached textures that are modified when flushing. (#918)
* Only enumarate cached textures that are modified when flushing, rather than all of them.
* Remove locking.
* Add missing clear.
* Remove texture from modified list when data is disposed.
In case the game does not call either flush method at any point.
* Add ReferenceEqualityComparer from jD for the HashSet
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Methods.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs index d9e7582b..a2c9876e 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs @@ -286,7 +286,7 @@ namespace Ryujinx.Graphics.Gpu.Engine if (color != null) { - color.Modified = true; + color.SignalModified(); } } @@ -306,7 +306,7 @@ namespace Ryujinx.Graphics.Gpu.Engine if (depthStencil != null) { - depthStencil.Modified = true; + depthStencil.SignalModified(); } } |