add property to control maximum game heap
Some checks failed
Publish to snapshot maven / build (push) Failing after 17s

This commit is contained in:
moehreag 2024-05-20 11:28:56 +02:00
parent 44433be9b7
commit 062b8a0616
2 changed files with 2 additions and 0 deletions

View file

@ -46,6 +46,7 @@ object RunConfigGenerator {
"Minecraft ${env.pascalName}",
"org.ecorous.esnesnon.nonsense.loader.impl.launch.${env.id}.Nonsense${env.pascalName}",
arrayOf(
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
"-Dnonsense.development=true",
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
"-Dlog4j.configurationFile=$log4jPath"

View file

@ -50,6 +50,7 @@ abstract class RunGameTask @Inject constructor(env: Env) : JavaExec() {
).runtimeClasspath.filter { it.exists() })
jvmArguments.addAll(
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
"-Dnonsense.development=true",
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
"-Dlog4j.configurationFile=$log4jPath",