Optimized memory modified check (#538)
* Optimized memory modified check This was initially in some cases more expensive than plainly sending the data. Now it should have way better performance. * Small refactoring * renamed InvalidAccessEventArgs * Renamed PtPageBits * Removed ValueRange(set) They are currently unused and won't be likely to be used in the near future
This commit is contained in:
@ -36,7 +36,7 @@ namespace Ryujinx.Graphics.Memory
|
||||
{
|
||||
this.Memory = Memory;
|
||||
|
||||
Cache = new NvGpuVmmCache();
|
||||
Cache = new NvGpuVmmCache(Memory);
|
||||
|
||||
PageTable = new long[PTLvl0Size][];
|
||||
}
|
||||
@ -262,7 +262,7 @@ namespace Ryujinx.Graphics.Memory
|
||||
|
||||
public bool IsRegionModified(long PA, long Size, NvGpuBufferType BufferType)
|
||||
{
|
||||
return Cache.IsRegionModified(Memory, BufferType, PA, Size);
|
||||
return Cache.IsRegionModified(PA, Size, BufferType);
|
||||
}
|
||||
|
||||
public bool TryGetHostAddress(long Position, long Size, out IntPtr Ptr)
|
||||
|
Reference in New Issue
Block a user