Skip to content

Commit

Permalink
Fix Gradle run task
Browse files Browse the repository at this point in the history
  • Loading branch information
sghpjuikit committed Dec 8, 2024
1 parent fcb25c6 commit 60bea95
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion app/SpitPlayer.com.l4j.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
-XX:MaxHeapFreeRatio=10
-XX:+UseStringDeduplication
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
# faster startup
-XX:+AutoCreateSharedArchive
-XX:SharedArchiveFile=SpitPlayer.jsa
1 change: 0 additions & 1 deletion app/SpitPlayer.l4j.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
-XX:MaxHeapFreeRatio=10
-XX:+UseStringDeduplication
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
# faster startup
-XX:+AutoCreateSharedArchive
-XX:SharedArchiveFile=SpitPlayer.jsa
3 changes: 1 addition & 2 deletions gradle/project.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ application {
executableDir = "app"
applicationDefaultJvmArgs = listOf(
"-Dname=SpitPlayer",
"-Dfile.encoding=UTF-8",
"-D--dev",
"-Xms" + ("player.memoryMin".prjProp ?: "50m"),
"-Xmx" + ("player.memoryMax".prjProp ?: "3g"),
"-XX:MinHeapFreeRatio=5", // Hotspot gc only
Expand All @@ -311,6 +311,5 @@ application {
"-XX:+UseCompressedOops",
"-XX:+CompactStrings", // OpenJ9 only
*"player.jvmArgs".prjProp?.split(' ')?.toTypedArray().orEmpty(),
"--dev"
)
}

0 comments on commit 60bea95

Please sign in to comment.