mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 19:06:40 +00:00
25 lines
1,016 B
C#
25 lines
1,016 B
C#
|
namespace Ryujinx.HLE.HOS.Services.Apm
|
|||
|
{
|
|||
|
class PerformanceState
|
|||
|
{
|
|||
|
public PerformanceState() { }
|
|||
|
|
|||
|
public bool CpuOverclockEnabled = false;
|
|||
|
|
|||
|
public PerformanceMode PerformanceMode = PerformanceMode.Default;
|
|||
|
public CpuBoostMode CpuBoostMode = CpuBoostMode.Disabled;
|
|||
|
|
|||
|
public PerformanceConfiguration DefaultPerformanceConfiguration = PerformanceConfiguration.PerformanceConfiguration7;
|
|||
|
public PerformanceConfiguration BoostPerformanceConfiguration = PerformanceConfiguration.PerformanceConfiguration8;
|
|||
|
|
|||
|
public PerformanceConfiguration GetCurrentPerformanceConfiguration(PerformanceMode performanceMode)
|
|||
|
{
|
|||
|
return performanceMode switch
|
|||
|
{
|
|||
|
PerformanceMode.Default => DefaultPerformanceConfiguration,
|
|||
|
PerformanceMode.Boost => BoostPerformanceConfiguration,
|
|||
|
_ => PerformanceConfiguration.PerformanceConfiguration7
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|