Skip to content

Commit 85dea3a

Browse files
committed
Mono: Prefer performance over memory
Every user can further fine-tune it however he wishes with https://github.com/JustArchi/ArchiSteamFarm/wiki/Low-memory-setup
1 parent aa9d78a commit 85dea3a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ArchiSteamFarm/ArchiSteamFarm.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
cp "$(TargetDir)config/ASF.json" "$(SolutionDir)out/config"
171171
cp "$(TargetDir)config/example.json" "$(SolutionDir)out/config"
172172
cp "$(TargetDir)config/minimal.json" "$(SolutionDir)out/config"
173-
mono --desktop --llvm -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
173+
mono --llvm --server -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
174174
rm "$(SolutionDir)out/ASF.exe.config"
175175
</PostBuildEvent>
176176
</PropertyGroup>

ConfigGenerator/ConfigGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
del "$(SolutionDir)out\ASF-ConfigGenerator.exe.config"
110110
</PostBuildEvent>
111111
<PostBuildEvent Condition=" '$(OS)' == 'Unix' AND '$(ConfigurationName)' == 'Release' ">
112-
mono --desktop --llvm -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-ConfigGenerator.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
112+
mono --llvm --server -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-ConfigGenerator.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
113113
rm "$(SolutionDir)out/ASF-ConfigGenerator.exe.config"
114114
</PostBuildEvent>
115115
</PropertyGroup>

cc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu
44
BUILD="Release"
55
CLEAN=0
66

7-
MONO_ARGS=("--aot" "--desktop" "--llvm" "-O=all")
7+
MONO_ARGS=("--aot" "--llvm" "--server" "-O=all")
88
XBUILD_ARGS=("/nologo")
99
BINARIES=("ArchiSteamFarm/bin/Release/ArchiSteamFarm.exe")
1010
SOLUTION="ArchiSteamFarm.sln"

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -eu
33

44
BUILD="Release"
55

6-
MONO_ARGS=("--desktop" "--llvm" "-O=all")
6+
MONO_ARGS=("--llvm" "--server" "-O=all")
77

88
PRINT_USAGE() {
99
echo "Usage: $0 [debug/release]"

0 commit comments

Comments
 (0)