Skip to content

Commit

Permalink
update init
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Mar 10, 2024
1 parent 5ced938 commit 58d5c9a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ curl -L https://raw.githubusercontent.com/mengmeet/PowerControl/main/install.sh
| GPD WINMAX2 | 45 W | 待验证 |
| GPD WIN4 | 45 W | 待验证 |
| GPD WIN Mini | 30 W | 已适配 |
| ROG Ally | 40 W | 未适配 |
| ROG Ally | 30 W | 未适配 |

**TDP调整基于ryzenadj,因此只支持ryzenadj支持的cpu列表.如有未列出的cpu或者给出的范围数值不正确,请在[issues](https://github.com/Gawah/PowerControl/issues)提交**

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@rollup/plugin-typescript": "^8.3.3",
"@types/react": "16.14.0",
"@types/webpack": "^5.28.0",
"decky-frontend-lib": "^3.24.5",
"decky-frontend-lib": "^3.25.0",
"rollup": "^2.77.1",
"rollup-plugin-import-assets": "^1.1.1",
"shx": "^0.3.4",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/util/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,11 @@ class GPUPerformancePatch {
}
private applyGPUFreq = () => {
//其他模式时防止原生设置改变频率
// if(Settings.appGPUMode()==GPUMODE.RANGE||Settings.appGPUMode()==GPUMODE.AUTO){
// return;
// }
if (Settings.appGPUMode() != GPUMODE.NATIVE) {
return;
}


if (
GPUPerformanceLevel.ENABLE ==
this.perfStore?.msgSettingsPerApp?.gpu_performance_level
Expand Down
4 changes: 2 additions & 2 deletions src/util/pluginMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ export class PluginManager{
PluginManager.state = PluginState.INIT;
await Backend.init(serverAPI);
await localizationManager.init(serverAPI);
await QAMPatch.init();
RunningApps.register();
FanControl.register();
RunningApps.listenActiveChange((newAppId, oldAppId) => {
Expand All @@ -238,8 +237,9 @@ export class PluginManager{
Backend.applySettings(APPLYTYPE.SET_ALL);
}
});
ACStateManager.register();
Settings.loadSettingsFromLocalStorage();
ACStateManager.register();
await QAMPatch.init();
Backend.applySettings(APPLYTYPE.SET_ALL);
PluginManager.suspendEndHook = SteamClient.System.RegisterForOnResumeFromSuspend(async () => {
setTimeout(() => {
Expand Down

0 comments on commit 58d5c9a

Please sign in to comment.