mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-13 03:06:41 +00:00
Update performance mode when docked mode changes. (#1696)
This commit is contained in:
parent
3c60d4b0ea
commit
7166e82c3c
2 changed files with 4 additions and 0 deletions
|
@ -250,6 +250,7 @@ namespace Ryujinx.HLE.HOS
|
||||||
if (e.NewValue != State.DockedMode)
|
if (e.NewValue != State.DockedMode)
|
||||||
{
|
{
|
||||||
State.DockedMode = e.NewValue;
|
State.DockedMode = e.NewValue;
|
||||||
|
PerformanceState.PerformanceMode = State.DockedMode ? PerformanceMode.Boost : PerformanceMode.Default;
|
||||||
|
|
||||||
AppletState.EnqueueMessage(MessageInfo.OperationModeChanged);
|
AppletState.EnqueueMessage(MessageInfo.OperationModeChanged);
|
||||||
AppletState.EnqueueMessage(MessageInfo.PerformanceModeChanged);
|
AppletState.EnqueueMessage(MessageInfo.PerformanceModeChanged);
|
||||||
|
|
|
@ -10,6 +10,7 @@ using Ryujinx.HLE.FileSystem;
|
||||||
using Ryujinx.HLE.FileSystem.Content;
|
using Ryujinx.HLE.FileSystem.Content;
|
||||||
using Ryujinx.HLE.HOS;
|
using Ryujinx.HLE.HOS;
|
||||||
using Ryujinx.HLE.HOS.Services;
|
using Ryujinx.HLE.HOS.Services;
|
||||||
|
using Ryujinx.HLE.HOS.Services.Apm;
|
||||||
using Ryujinx.HLE.HOS.Services.Hid;
|
using Ryujinx.HLE.HOS.Services.Hid;
|
||||||
using Ryujinx.HLE.HOS.SystemState;
|
using Ryujinx.HLE.HOS.SystemState;
|
||||||
using Ryujinx.Memory;
|
using Ryujinx.Memory;
|
||||||
|
@ -111,6 +112,8 @@ namespace Ryujinx.HLE
|
||||||
|
|
||||||
System.State.DockedMode = ConfigurationState.Instance.System.EnableDockedMode;
|
System.State.DockedMode = ConfigurationState.Instance.System.EnableDockedMode;
|
||||||
|
|
||||||
|
System.PerformanceState.PerformanceMode = System.State.DockedMode ? PerformanceMode.Boost : PerformanceMode.Default;
|
||||||
|
|
||||||
if (ConfigurationState.Instance.System.EnableMulticoreScheduling)
|
if (ConfigurationState.Instance.System.EnableMulticoreScheduling)
|
||||||
{
|
{
|
||||||
System.EnableMultiCoreScheduling();
|
System.EnableMultiCoreScheduling();
|
||||||
|
|
Loading…
Reference in a new issue