Remove locking.

This commit is contained in:
riperiperi 2020-02-02 17:09:46 +00:00
commit 24df92140d

View file

@ -599,12 +599,9 @@ namespace Ryujinx.Graphics.Gpu.Image
/// </summary>
/// <param name="texture">The texture that was modified.</param>
private void CacheTextureModified(Texture texture)
{
lock (_modified)
{
_modified.Add(texture);
}
}
/// <summary>
/// Resizes the temporary buffer used for range list intersection results, if it has grown too much.
@ -739,8 +736,6 @@ namespace Ryujinx.Graphics.Gpu.Image
/// Flushes all the textures in the cache that have been modified since the last call.
/// </summary>
public void Flush()
{
lock (_modified)
{
foreach (Texture texture in _modified)
{
@ -749,8 +744,6 @@ namespace Ryujinx.Graphics.Gpu.Image
texture.Flush();
}
}
_modified.Clear();
}
}
/// <summary>
@ -759,8 +752,6 @@ namespace Ryujinx.Graphics.Gpu.Image
/// <param name="address">The range start address</param>
/// <param name="size">The range size</param>
public void Flush(ulong address, ulong size)
{
lock (_modified)
{
foreach (Texture texture in _modified)
{
@ -771,7 +762,6 @@ namespace Ryujinx.Graphics.Gpu.Image
}
_modified.Clear();
}
}
/// <summary>
/// Removes a texture from the cache.