Optimization ⏱️ ~6 min read

Modpack Performance Optimization Guide

A collection of performance optimization tips for a smooth, lag-free modpack experience.

📑 Contents (8 sections)
  1. Before You Start — Work Out What Kind of "Lag" You Have
  2. JVM and Memory
  3. In-Game Settings — Getting FPS Back
  4. Chunk and Tick Management — Late-Game TPS
  5. Shaders — What to Know First
  6. If It's a Crash, Not Lag
  7. Measurement Tools
  8. Related Reading

Before You Start — Work Out What Kind of "Lag" You Have

What people call "lag" is two different problems. Low FPS and low TPS (ticks per second) have different causes and different fixes. Touch anything before you know which one you have and you'll waste the afternoon.

  • Low FPS — the rendering side can't keep up. Render distance, graphics options, shaders, and rendering optimization mods are where you look.
  • Low TPS (20 is normal) — the server simulation is falling behind (singleplayer runs an internal server too). Overloaded automation, too many force-loaded chunks, entity pileups.
  • Periodic hitching — possibly GC pauses. See the [Memory & JVM Arguments Guide](/en/guides/memory-jvm-args-guide/).
  • How to tell them apart

    FPS is right there on the F3 debug screen. TPS is not shown on F3. To see TPS, the Spark profiler mod is the reliable route (/spark tps for current TPS, /spark profiler to find what's eating the tick). If FPS looks fine but mobs and machines act sluggish, it's a TPS problem.

    JVM and Memory

    RAM allocation and JVM arguments are the first thing to tune. The details — the full Aikar's Flags set, the 12GB+ adjustments, Java version matching — live in the [Memory & JVM Arguments Guide](/en/guides/memory-jvm-args-guide/). In short:

  • Leave the OS its share. On a 16GB PC, 8–10GB to the game. Once the system starts swapping to disk, nothing you allocate helps
  • Bigger isn't automatically better. A larger heap means more for each GC cycle to walk
  • Match the Java version. 1.20.5+ (including 1.21) needs Java 21; 1.18–1.20.4 needs Java 17; 1.16.5 and earlier need Java 8. Too low and the game won't launch at all
  • In-Game Settings — Getting FPS Back

    Settings to touch first

  • Render distance — 8–12 chunks is a workable range for large packs. It's the heaviest single option
  • Simulation distance — the range in which entities and blocks tick. Separate from render distance; lowering it helps TPS
  • Particles — automation setups generate a lot of them. Reduce or set to minimal
  • VSync — caps FPS to your monitor's refresh rate and removes tearing. If your FPS is already below the refresh rate, turning it on won't gain you frames
  • Other things you can lower

    Clouds, entity shadows, smooth lighting, and biome blend all cost something. The impact varies by machine, so change one at a time and watch the result.

    Rendering optimization mods

  • Fabric → Sodium
  • Forge / NeoForge → [Embeddium](/en/mods/embeddium/) (a Forge/NeoForge renderer forked from Sodium's code)
  • Good companions: [FerriteCore](/en/mods/ferritecore/) (memory), [ModernFix](/en/mods/modernfix/) (boot/load/memory), [Entity Culling](/en/mods/entity-culling/) (skips rendering entities you can't see)
  • Most large packs already ship these. Check the mods folder first — if they're there, tuning their options is enough.

    Chunk and Tick Management — Late-Game TPS

    Once automation is running at scale you'll hit the classic *FPS is fine but the game feels sluggish* state. That's TPS.

    Common causes

  • Too many force-loaded chunks — chunk loaders and FTB Chunks keep everything inside them ticking whether you're there or not
  • Automation running for no reason — producing resources nobody consumes, at a per-tick cost
  • Entity pileups — dropped items, mobs, and animals accumulating in one place get expensive
  • What to do

  • Measure first with Spark. /spark profiler tells you which mod or block is eating the tick. Far faster than guessing and rebuilding
  • Gate unused automation lines off with redstone
  • Prune force-loaded chunks down to the ones you actually need
  • Don't let dropped items accumulate — give item lines somewhere to go
  • Note: F3+A makes the client re-render chunks. It's handy for visual glitches, but it has nothing to do with TPS.

    Shaders — What to Know First

    Shaders add substantial GPU load. How many frames you lose is decided by which shaderpack and which GPU — if it's too heavy, drop to a lighter pack.

  • Shader loader: Iris on Fabric, [Oculus](/en/mods/oculus/) (the Forge fork of Iris) on Forge/NeoForge
  • Oculus isn't self-contained. Its repository lists the same author's Rubidium as a requirement, and packs commonly pair it with Embeddium instead. Embeddium and Rubidium cannot be installed together — pick one
  • Oculus cannot be used with OptiFine. The mod's repository states this outright
  • Existing OptiFine/ShadersMod shaderpack zips load in Oculus unmodified
  • Leaving shaders off until you know the pack makes diagnosis easier — one less variable when something breaks.

    If It's a Crash, Not Lag

    Crashes need a different approach. Reading crash-reports, what each error type means, and the binary-search method for finding the conflicting mod are covered in [Mod Conflict Troubleshooting](/en/guides/mod-conflict-troubleshooting/).

    Measurement Tools

  • F3 (in-game debug) — FPS and memory used/allocated. It does not show TPS
  • Spark (mod) — TPS readout and tick profiling. The most useful tool for late-game lag
  • [JEI](/en/mods/just-enough-items/) search bar — prefix a search with @ to filter items by mod, which tells you what each mod added
  • Related Reading

  • [Memory & JVM Arguments Guide](/en/guides/memory-jvm-args-guide/) — RAM, Aikar's Flags, Java versions
  • [Five Small Optimization Mods](/en/info/small-optimization-mods/) — boot, world load, login: the non-FPS stages
  • [Mod Conflict Troubleshooting](/en/guides/mod-conflict-troubleshooting/) — handling crashes
  • [Beginner Modpack Guide](/en/guides/beginner-modpack-guide/) — install, JEI, backups
  • [Modpacks](/en/modpacks/) — recommended RAM per pack
  • 📦 Related Modpacks