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
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user