Launch Optimizer

Lets modpack authors ship JVM options in a config file and apply them through a supervised child JVM at early launch.

Launch Optimizer is a modpack-author utility for Forge 1.20.1 and NeoForge 1.21.1.

It lets a modpack ship JVM options inside the pack instead of asking every player to edit launcher settings manually.

HOW IT WORKS
It reads config/launchoptimizer.txt, appends those JVM arguments to the launcher's existing arguments, and starts Minecraft in a child JVM. The original process stays alive as a small supervisor until the game exits, so launchers continue to track the running instance.

FOR MODPACK AUTHORS
1. Include the mod jar in the pack.
2. Ship config/launchoptimizer.txt through the pack's config overrides.
3. Put one or more JVM arguments per line. Lines starting with # are ignored.
4. Tune the defaults to the pack's heap settings. Comment out all active lines to disable the relaunch.

DEFAULT CONFIGURATION
- -XX:SoftMaxHeapSize=5G
- -XX:+UseStringDeduplication
- -XX:InitiatingHeapOccupancyPercent=35
- -XX:+PerfDisableSharedMem
- -Dcustomskinloader.ignorePatchFailure=true

IMPORTANT
- The mod intentionally changes the JVM command line and starts a second Java process.
- The mod re-adds the parent's -Xmx; do not hardcode -Xmx unless the pack specifically needs to override it.
- The default SoftMaxHeapSize=5G requires a maximum heap of at least 5 GB. On smaller heaps, lower or remove that line before shipping the pack.
- No files are downloaded from external servers.

REQUIREMENTS
- Forge 1.20.1
- NeoForge 1.21.1
- Java 17+ for 1.20.1, Java 21 for 1.21.1

中文说明:

Launch Optimizer 是面向整合包作者的启动参数工具,支持 Forge 1.20.1 和 NeoForge 1.21.1。

它的用途是让整合包把 JVM 参数直接随包发布,而不是要求每个玩家手动修改启动器设置。

工作原理
它会读取 config/launchoptimizer.txt,把这些 JVM 参数追加到启动器已有参数后面,然后用子 JVM 启动 Minecraft。原进程作为一个小型 supervisor 一直存活到游戏退出,因此启动器会持续认为实例正在运行。

整合包作者用法
1. 把模组 jar 放进整合包。
2. 通过整合包的 config overrides 附带 config/launchoptimizer.txt。
3. 每行写一个或多个 JVM 参数,以 # 开头的行会被忽略。
4. 根据整合包实际堆大小调整默认参数。把全部有效行注释掉即可关闭自重启。

默认配置
- -XX:SoftMaxHeapSize=5G
- -XX:+UseStringDeduplication
- -XX:InitiatingHeapOccupancyPercent=35
- -XX:+PerfDisableSharedMem
- -Dcustomskinloader.ignorePatchFailure=true

重要说明
- 本模组会主动修改 JVM 命令行并启动第二个 Java 进程,这是设计行为。
- 模组会自动继承父进程的 -Xmx,不要随意在配置里写死 -Xmx。
- 默认的 SoftMaxHeapSize=5G 要求最大堆至少 5 GB;如果整合包使用更小的堆,请先调低或删除这一行。
- 不下载任何外部文件。

要求
- Forge 1.20.1
- NeoForge 1.21.1
- 1.20.1 需要 Java 17+,1.21.1 需要 Java 21

Launch Optimizer Team

profile avatar
  • 1
    Followers
  • 5
    Projects
  • 120.6K
    Downloads

More from luoyucheniView all

  • Recipe Reforge project image

    Recipe Reforge

    Browse and edit any recipe in-game, JEI-style: scans every loaded data pack and mod, groups recipes by mod, lets you change ingredients, outputs, counts and custom parameters, and saves global data-pack overrides that apply to every world.

    • 30
    • December 6, 2026
  • Mental Magic project image

    Mental Magic

    This is a magic mod centered around psychic powers and magic circles, with very cool rendering.

    • 219
    • October 10, 2026
  • Goety DarGui project image

    Goety DarGui

    ADD a visual GUI for the Dark Altar, with JEI one-click recipe fill and RS/BD storage network auto-extraction support

    • 118.9K
    • August 6, 2026
  • Goety Focus project image

    Goety Focus

    Added a special Crystal Socket slot. Spells can be cast without a staff. Based on the type of Crystal placed in the socket, players will gain unique set bonuses, as well as additional damage scaling tied to soul energy

    • 1.4K
    • July 14, 2026
  • Recipe Reforge project image

    Recipe Reforge

    Browse and edit any recipe in-game, JEI-style: scans every loaded data pack and mod, groups recipes by mod, lets you change ingredients, outputs, counts and custom parameters, and saves global data-pack overrides that apply to every world.

    • 30
    • December 6, 2026
  • Mental Magic project image

    Mental Magic

    This is a magic mod centered around psychic powers and magic circles, with very cool rendering.

    • 219
    • October 10, 2026
  • Goety DarGui project image

    Goety DarGui

    ADD a visual GUI for the Dark Altar, with JEI one-click recipe fill and RS/BD storage network auto-extraction support

    • 118.9K
    • August 6, 2026
  • Goety Focus project image

    Goety Focus

    Added a special Crystal Socket slot. Spells can be cast without a staff. Based on the type of Crystal placed in the socket, players will gain unique set bonuses, as well as additional damage scaling tied to soul energy

    • 1.4K
    • July 14, 2026