Allocate More RAM to tModLoader – Simple Guide
In this article
Yes, you can allocate more RAM to tModLoader by adding a launch argument (or editing the startup script) that tells the Java‑based engine how much memory it may use.
What You’ll Need
- tModLoader installed via Steam (or the official zip for Windows, macOS, or Linux)
- Access to the folder where tModLoader’s executable resides
- A plain‑text editor such as Notepad, Notepad++, nano, or VS Code
- Basic familiarity with creating shortcuts or editing command‑line arguments
Step‑By‑Step
- Close tModLoader completely. Make sure the game is not running in the background; you can verify this in the Task Manager (Windows), Activity Monitor (macOS), or with
ps(Linux). - Find the executable.
- Windows: Open your Steam library, right‑click tModLoader → Properties → Local Files → Browse…. The file
tModLoader.exewill be in the root of the folder. - macOS: The app bundle is located at
/Applications/tModLoader.app. Right‑click the bundle and choose Show Package Contents, then navigate toContents/MacOSwhere the binarytModLoaderlives. - Linux: If you installed via Steam, the folder is typically
~/.local/share/Steam/steamapps/common/tModLoader. The launch script istModLoader(no extension).
- Windows: Open your Steam library, right‑click tModLoader → Properties → Local Files → Browse…. The file
- Create a shortcut (Windows) or copy the launch script (macOS/Linux).
- Windows: Right‑click
tModLoader.exeand select Create shortcut. A file namedtModLoader - Shortcutwill appear. - macOS: Duplicate the
tModLoaderbinary (⌘‑D) and rename the copy to something liketModLoader‑HighRAM. - Linux: Copy the launch script to a new file, e.g.,
tModLoader‑highram, and make it executable withchmod +x tModLoader‑highram.
- Windows: Right‑click
- Append the memory argument.
- Windows: Right‑click the shortcut → Properties. In the Target field, after the existing path, add a space and then
-maxram=4096(replace 4096 with the amount of megabytes you want, e.g., 8192 for 8 GB). The full line should look like:C:\Program Files (x86)\Steam\steamapps\common\tModLoader\tModLoader.exe -maxram=4096
- macOS: Open Terminal and navigate to the folder containing the duplicated binary. Run the binary with the argument, for example:
./tModLoader‑HighRAM -maxram=4096
To make this permanent, edit the duplicated binary’s launch script (if one exists) or create a small wrapper script that includes the argument. - Linux: Edit the copied launch script with a text editor and add the
-maxram=4096flag after the executable name. A typical line might become:./tModLoader -maxram=4096 "$@"
Save the file and ensure it remains executable.
- Windows: Right‑click the shortcut → Properties. In the Target field, after the existing path, add a space and then
- Save your changes and launch via the new shortcut or script. Double‑click the shortcut on Windows, run the duplicated binary on macOS, or execute the wrapper script on Linux. tModLoader will now start with the increased memory pool.
- Verify the new allocation. Once the game loads, open the in‑game console (press the back‑quote key
`) and typememory. The console will display the current maximum RAM value, confirming that your argument took effect.
Common Mistakes
- Using
-maxram=4GBinstead of a pure number. The argument expects megabytes without a suffix;-maxram=4096is correct. - Editing the original
tModLoader.exefile directly. This can be overwritten by Steam updates. Always use a shortcut or a copy. - Setting the value higher than your physical RAM. If you request more memory than your system has, the game may fail to start or crash.
- Forgetting to add a space before the argument in the shortcut target. The path and the flag must be separated by a space.
- On macOS, launching the app from Finder instead of the terminal copy. The Finder launch ignores command‑line arguments, so the extra RAM is never applied.
Tips
- Start with a modest increase (e.g., 2048 MB) and test stability before allocating the full amount of your system’s RAM.
- If you run many mods that heavily use world generation, 6 GB (6144 MB) is often a sweet spot for 16 GB‑class machines.
- Keep your graphics drivers up to date; memory allocation issues sometimes surface as rendering glitches.
- When using Steam’s “Launch Options” field (right‑click → Properties → Set Launch Options), you can also add
-maxram=4096there. This works on Windows and Linux without creating a separate shortcut. - Monitor RAM usage with Task Manager or Activity Monitor while the game runs. If you see the process hitting the ceiling you set, consider raising the limit further.
Troubleshooting
If tModLoader fails to start after adding the argument, follow these checks in order:
- Restart the computer. A fresh boot clears any lingering lock on the executable.
- Confirm the argument syntax. It must be exactly
-maxram=####with no spaces around the equals sign. - Check for Steam updates. Open Steam, go to Library → tModLoader → Update. An update may have overwritten the shortcut; recreate it if necessary.
- Verify you have enough free RAM. Open Task Manager and ensure the total used RAM plus the amount you are allocating does not exceed physical memory.
- Remove the argument temporarily. Launch the game without the flag to see if the base installation works. If it does, the problem is likely the memory value you chose.
- Use the Steam launch options as an alternative. Right‑click tModLoader → Properties → Set Launch Options and type
-maxram=4096. This method bypasses shortcut quirks. - Re‑install tModLoader. As a last resort, uninstall via Steam, delete any leftover files in the game folder, then reinstall. After reinstalling, repeat the shortcut steps.
Never delete your Mods folder unless you have a backup; doing so will remove all installed mods and could require re‑downloading large content packs.
Frequently Asked Questions
Can I allocate more than 8 GB of RAM?
Yes, as long as your computer has that amount of physical memory and you leave enough for the operating system and other applications. The argument accepts any integer value in megabytes.
Does increasing RAM improve FPS?
More RAM mainly reduces stutters caused by loading large worlds or many mods. It does not directly increase frame rate, which is governed by your GPU and CPU.
Do I need to edit any config files?
No. The -maxram flag is the only required change. tModLoader reads the value at launch and applies it automatically.
What if I use the tModLoader “tML” launcher instead of Steam?
The same principle applies: create a shortcut to the tModLoader.exe (or the platform‑specific binary) and add the -maxram flag to the target or launch options.
Is there a limit imposed by the Java runtime?
tModLoader uses a custom .NET runtime, not Java, so the -maxram flag is not limited by Java’s 2 GB default. The only practical limit is your system’s available RAM.
Will this setting survive game updates?
If you use Steam’s Launch Options field, the argument persists across updates. Shortcut‑based methods may need to be recreated after a major update that replaces the executable.