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