aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Cpu/Tracking/CpuMultiRegionHandle.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2021-06-24 00:31:26 +0100
committerGitHub <noreply@github.com>2021-06-24 01:31:26 +0200
commit12a7a2ead812d46deb9d978b6758731157be1cbc (patch)
treee2b5ca9c8ce9d7087c0eff4a5de8e2927f4bb9a1 /Ryujinx.Cpu/Tracking/CpuMultiRegionHandle.cs
parente053663f27132baec4a4d7c223894eb0322c6c03 (diff)
Inherit buffer tracking handles rather than recreating on resize (#2330)
This greatly speeds up games that constantly resize buffers, and removes stuttering on games that resize large buffers occasionally: - Large improvement on Super Mario 3D All-Stars (#1663 needed for best performance) - Improvement to Hyrule Warriors: AoC, and UE4 games. These games can still stutter due to texture creation/loading. - Small improvement to other games, potential 1-frame stutters avoided. `ForceSynchronizeMemory`, which was added with POWER, is no longer needed. Some tests have been added for the MultiRegionHandle.
Diffstat (limited to 'Ryujinx.Cpu/Tracking/CpuMultiRegionHandle.cs')
-rw-r--r--Ryujinx.Cpu/Tracking/CpuMultiRegionHandle.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Cpu/Tracking/CpuMultiRegionHandle.cs b/Ryujinx.Cpu/Tracking/CpuMultiRegionHandle.cs
index 344b1a78..78c1b240 100644
--- a/Ryujinx.Cpu/Tracking/CpuMultiRegionHandle.cs
+++ b/Ryujinx.Cpu/Tracking/CpuMultiRegionHandle.cs
@@ -1,5 +1,6 @@
using Ryujinx.Memory.Tracking;
using System;
+using System.Collections.Generic;
namespace Ryujinx.Cpu.Tracking
{
@@ -16,6 +17,7 @@ namespace Ryujinx.Cpu.Tracking
public void Dispose() => _impl.Dispose();
public void ForceDirty(ulong address, ulong size) => _impl.ForceDirty(address, size);
+ public IEnumerable<IRegionHandle> GetHandles() => _impl.GetHandles();
public void QueryModified(Action<ulong, ulong> modifiedAction) => _impl.QueryModified(modifiedAction);
public void QueryModified(ulong address, ulong size, Action<ulong, ulong> modifiedAction) => _impl.QueryModified(address, size, modifiedAction);
public void QueryModified(ulong address, ulong size, Action<ulong, ulong> modifiedAction, int sequenceNumber) => _impl.QueryModified(address, size, modifiedAction, sequenceNumber);