The Sparse Jit Function Table sizes now depend on the LowPowerPTC setting. This means lower power devices won't be impacted as hard by the higher ram speed requirement of GiantBlock. Also added functionality to the PPTC Initializer so it now supports different PPTC Profiles simultaneously, which makes switching between TinyBlock/LowPower and GiantBlock/HighPower seamless. This also opens the door for the potential of PPTC cache with exefs mods enabled in the future. Default (aka HighPower) currently has an Avalonia bug that causes a crash when starting a game, it can be bypassed be clicking the window multiple times durring loading until the window unfreezes.
23 lines
573 B
C#
23 lines
573 B
C#
using ARMeilleure.Memory;
|
|
using System.Runtime.Versioning;
|
|
|
|
namespace Ryujinx.Cpu.AppleHv
|
|
{
|
|
[SupportedOSPlatform("macos")]
|
|
public class HvEngine : ICpuEngine
|
|
{
|
|
private readonly ITickSource _tickSource;
|
|
|
|
public HvEngine(ITickSource tickSource)
|
|
{
|
|
_tickSource = tickSource;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public ICpuContext CreateCpuContext(IMemoryManager memoryManager, bool for64Bit, bool lowPower)
|
|
{
|
|
return new HvCpuContext(_tickSource, memoryManager, for64Bit, lowPower);
|
|
}
|
|
}
|
|
}
|