能效核心屏蔽功能应用到 RSI启动器,以让开发板使用此功能。

This commit is contained in:
2023-11-28 20:04:15 +08:00
parent 06c581cd80
commit 4f6623a4cd
8 changed files with 45 additions and 33 deletions

View File

@ -537,7 +537,7 @@ class HomeUIModel extends BaseUIModel {
dPrint('stdout: ${result.stdout}');
dPrint('stderr: ${result.stderr}');
} else {
dPrint("set Affinity === $processorAffinity ");
dPrint("set Affinity === $processorAffinity launchExe === $launchExe");
ProcessResult result = await Process.run("cmd.exe", [
'/C',
'Start',

View File

@ -220,14 +220,9 @@ class LoginDialogModel extends BaseUIModel {
await Future.delayed(const Duration(seconds: 1));
await Future.delayed(const Duration(seconds: 3));
final confBox = await Hive.openBox("app_conf");
final inputGameLaunchECore = int.tryParse(
confBox.get("gameLaunch_eCore_count", defaultValue: "0")) ??
0;
final processorAffinity =
await SystemHelper.getCpuAffinity(inputGameLaunchECore);
await SystemHelper.getCpuAffinity();
// TODO 更新启动方式
homeUIModel.doLaunchGame(
'$installPath\\$executable',
["-no_login_dialog", ...launchOptions.toString().split(" ")],