소스 검색

Fix regression caused by wrong time delta calculation on cache deletion methods

gdkchan 7 년 전
부모
커밋
5a87e58183
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      ChocolArm64/ATranslatorCache.cs
  2. 1 1
      Ryujinx.Graphics/Gal/OpenGL/OGLCachedResource.cs

+ 1 - 1
ChocolArm64/ATranslatorCache.cs

@@ -138,7 +138,7 @@ namespace ChocolArm64
 
                     CacheBucket Bucket = Cache[Node.Value];
 
-                    long TimeDelta = Bucket.Timestamp - Timestamp;
+                    long TimeDelta = Timestamp - Bucket.Timestamp;
 
                     if (TimeDelta <= MinTimeDelta)
                     {

+ 1 - 1
Ryujinx.Graphics/Gal/OpenGL/OGLCachedResource.cs

@@ -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)
                 {