Skip to content

Commit

Permalink
Preset:disabled avx by default, enabled it manully
Browse files Browse the repository at this point in the history
  • Loading branch information
longjunyu2 committed Aug 4, 2024
1 parent 97b8e0a commit 6e07a81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ else if (id.equals(Box86_64Preset.INTERMEDIATE)) {
envVars.put(ucPrefix+"_DYNAREC_CALLRET", "0");
envVars.put(ucPrefix+"_DYNAREC_WAIT", "1");
if (ucPrefix.equals("BOX64")) {
envVars.put("BOX64_AVX", "1");
envVars.put("BOX64_UNITYPLAYER", "1");
envVars.put("BOX64_AVX", "0");
envVars.put("BOX64_UNITYPLAYER", "0");
}
}
else if (id.equals(Box86_64Preset.PERFORMANCE)) {
Expand All @@ -76,8 +76,8 @@ else if (id.equals(Box86_64Preset.PERFORMANCE)) {
envVars.put(ucPrefix+"_DYNAREC_CALLRET", "1");
envVars.put(ucPrefix+"_DYNAREC_WAIT", "1");
if (ucPrefix.equals("BOX64")) {
envVars.put("BOX64_AVX", "2");
envVars.put("BOX64_UNITYPLAYER", "1");
envVars.put("BOX64_AVX", "0");
envVars.put("BOX64_UNITYPLAYER", "0");

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ private void addBox64EnvVars(EnvVars envVars, boolean enableLogs) {
envVars.put("BOX64_NOBANNER", ProcessHelper.PRINT_DEBUG && enableLogs ? "0" : "1");
envVars.put("BOX64_DYNAREC", "1");
if (wow64Mode) envVars.put("BOX64_MMAP32", "1");
envVars.put("BOX64_AVX", "1");

if (enableLogs) {
envVars.put("BOX64_LOG", "1");
Expand Down

0 comments on commit 6e07a81

Please sign in to comment.