📅  最后修改于: 2023-12-03 15:02:57.879000             🧑  作者: Mango
Minecraft Java Arguments refer to the configurable command-line options that allow you to customize your Minecraft gameplay experience. These arguments can be used to allocate more memory to Minecraft, increase performance, and add or modify certain game features.
The following arguments are the most commonly used in Minecraft and are a good starting point for configuring your gameplay. These arguments are added to the end of the launch command for the game.
-Xmx<size>
This argument sets the maximum amount of memory available to Minecraft. The <size>
parameter specifies the amount of memory you want to allocate, measured in megabytes. For example, -Xmx4G
allocates 4GB of RAM to Minecraft.
-Xms<size>
This argument sets the initial amount of memory available to Minecraft. The <size>
parameter specifies the amount of memory you want to allocate, measured in megabytes. For example, -Xms2G
allocates 2GB of RAM to Minecraft at launch.
-XX:+UseG1GC
This argument enables the use of the Garbage First Garbage Collector, which can improve performance and reduce lag in Minecraft.
-XX:+DisableExplicitGC
This argument disables the explicit garbage collection mechanism, which means that Minecraft will rely entirely on the Garbage Collector to handle memory. This can help reduce lag and increase performance.
These arguments are more specialized and can be used to further customize your Minecraft gameplay experience.
-Dfml.ignoreInvalidMinecraftCertificates=true
This argument allows Minecraft to load mods that have not been explicitly signed. This can be useful when using mods from third-party sources.
-Dfml.ignorePatchDiscrepancies=true
This argument allows Minecraft to load mods with minor version differences. This can be useful for dealing with mods that have not been updated to match the current version of Minecraft.
-XX:ParallelGCThreads=<num>
This argument specifies the number of threads to use for parallel garbage collection. The <num>
parameter specifies the number of threads to use. This can help improve performance and reduce lag in Minecraft.
Minecraft Java Arguments allow you to customize your gameplay experience by allocating more memory, increasing performance, and adding or modifying game features. The basic arguments are a good starting point, but the advanced arguments can be useful when dealing with mods or specialized gameplay scenarios.