Remove locking.
This commit is contained in:
parent
0914001177
commit
24df92140d
1 changed files with 8 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue