Remove a variable that is no longer needed
This commit is contained in:
parent
cbf7bd07f6
commit
5e030038f8
1 changed files with 7 additions and 11 deletions
|
@ -127,24 +127,20 @@ namespace Ryujinx.HLE.Gpu.Memory
|
||||||
|
|
||||||
bool IsCached = Cache.TryGetValue(Key, out CachedPage Cp);
|
bool IsCached = Cache.TryGetValue(Key, out CachedPage Cp);
|
||||||
|
|
||||||
bool PgReset = false;
|
if (IsCached)
|
||||||
|
|
||||||
if (!IsCached)
|
|
||||||
{
|
|
||||||
Cp = new CachedPage();
|
|
||||||
|
|
||||||
Cache.Add(Key, Cp);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
CpCount -= Cp.GetTotalCount();
|
CpCount -= Cp.GetTotalCount();
|
||||||
|
|
||||||
SortedCache.Remove(Cp.Node);
|
SortedCache.Remove(Cp.Node);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Cp = new CachedPage();
|
||||||
|
|
||||||
PgReset |= Modified[Index++] && IsCached;
|
Cache.Add(Key, Cp);
|
||||||
|
}
|
||||||
|
|
||||||
if (PgReset)
|
if (Modified[Index++] && IsCached)
|
||||||
{
|
{
|
||||||
Cp = new CachedPage();
|
Cp = new CachedPage();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue