mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-23 13:32:02 +00:00
Fix regression caused by wrong time delta calculation on cache deletion methods
This commit is contained in:
parent
5b13ee655c
commit
5a87e58183
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ namespace ChocolArm64
|
|||
|
||||
CacheBucket Bucket = Cache[Node.Value];
|
||||
|
||||
long TimeDelta = Bucket.Timestamp - Timestamp;
|
||||
long TimeDelta = Timestamp - Bucket.Timestamp;
|
||||
|
||||
if (TimeDelta <= MinTimeDelta)
|
||||
{
|
||||
|
|
|
@ -157,7 +157,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|||
|
||||
CacheBucket Bucket = Cache[Node.Value];
|
||||
|
||||
long TimeDelta = Bucket.Timestamp - Timestamp;
|
||||
long TimeDelta = Timestamp - Bucket.Timestamp;
|
||||
|
||||
if ((uint)TimeDelta <= (uint)MaxTimeDelta)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue