diff options
author | riperiperi <rhy3756547@hotmail.com> | 2020-11-12 05:59:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 16:59:18 +1100 |
commit | 7166e82c3cf1fd8cf2fce3281017ee88122684d8 (patch) | |
tree | c478044f2ff7d747fd5e69624fa9f641a84a7199 | |
parent | 3c60d4b0eaa54983cf8e347fb156742c925f0594 (diff) |
Update performance mode when docked mode changes. (#1696)
-rw-r--r-- | Ryujinx.HLE/HOS/Horizon.cs | 1 | ||||
-rw-r--r-- | Ryujinx.HLE/Switch.cs | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Horizon.cs b/Ryujinx.HLE/HOS/Horizon.cs index 0f3cd41b..b7e76a72 100644 --- a/Ryujinx.HLE/HOS/Horizon.cs +++ b/Ryujinx.HLE/HOS/Horizon.cs @@ -250,6 +250,7 @@ namespace Ryujinx.HLE.HOS if (e.NewValue != State.DockedMode) { State.DockedMode = e.NewValue; + PerformanceState.PerformanceMode = State.DockedMode ? PerformanceMode.Boost : PerformanceMode.Default; AppletState.EnqueueMessage(MessageInfo.OperationModeChanged); AppletState.EnqueueMessage(MessageInfo.PerformanceModeChanged); diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs index f689d2e0..36ffc563 100644 --- a/Ryujinx.HLE/Switch.cs +++ b/Ryujinx.HLE/Switch.cs @@ -10,6 +10,7 @@ using Ryujinx.HLE.FileSystem; using Ryujinx.HLE.FileSystem.Content; using Ryujinx.HLE.HOS; using Ryujinx.HLE.HOS.Services; +using Ryujinx.HLE.HOS.Services.Apm; using Ryujinx.HLE.HOS.Services.Hid; using Ryujinx.HLE.HOS.SystemState; using Ryujinx.Memory; @@ -111,6 +112,8 @@ namespace Ryujinx.HLE System.State.DockedMode = ConfigurationState.Instance.System.EnableDockedMode; + System.PerformanceState.PerformanceMode = System.State.DockedMode ? PerformanceMode.Boost : PerformanceMode.Default; + if (ConfigurationState.Instance.System.EnableMulticoreScheduling) { System.EnableMultiCoreScheduling(); |