Desert Forge IT — Game Hosting from $2/weekGet a Server →

Sodium & Performance Mods

Performance Fabric — Client-side rendering optimization and the full Fabric performance stack.

Overview

Minecraft's rendering engine has been a performance bottleneck since the game's early days. The Java Edition uses an outdated OpenGL rendering pipeline that fails to take advantage of modern GPU capabilities. On mid-range hardware, vanilla Minecraft often struggles to maintain 60 FPS at higher render distances, and chunk loading can cause severe stuttering even on powerful systems.

The Fabric modding community has produced a set of optimization mods that dramatically improve Minecraft's performance without changing gameplay. These mods replace or optimize specific engine subsystems — rendering, lighting, game logic, and memory usage — and are designed to work together. The result is a Minecraft client that runs 2 to 5 times faster than vanilla, with shorter load times and smoother chunk rendering.

Sodium is the centerpiece of this performance stack, but it works best alongside complementary mods like Lithium, Starlight, and Iris. This guide covers each mod in the stack, what it does, and how to install them together.

Sodium

Sodium, developed by CaffeineMC (JellySquid), is a complete replacement for Minecraft's chunk rendering engine. It rewrites how the game builds, sorts, and uploads chunk geometry to the GPU, using modern OpenGL techniques and multithreaded mesh building to achieve dramatically better frame rates.

Key improvements Sodium provides:

  • Multithreaded chunk building — Vanilla Minecraft builds chunk meshes on a single thread. Sodium parallelizes this work across multiple CPU cores, which drastically reduces chunk update lag and makes higher render distances viable.
  • Optimized vertex formats — Sodium uses more compact vertex data, reducing GPU memory bandwidth consumption and improving frame rates, especially on integrated graphics.
  • Better GPU utilization — The mod uses modern OpenGL features like persistent-mapped buffers and indirect rendering to reduce driver overhead and CPU-side draw call costs.
  • Fog and biome blending fixes — Sodium includes improved biome color blending and configurable fog rendering that looks better than vanilla while costing less to render.

Typical FPS improvements range from 2x to 5x over vanilla, depending on hardware and settings. Players with weaker GPUs or integrated graphics often see the largest relative gains. Sodium is purely a client-side mod — it does not need to be installed on the server.

Sodium replaces OptiFine's rendering optimization role entirely. You do not need OptiFine when running Sodium, and the two are incompatible. For shader support, use Iris (see below).

Lithium

Lithium, also by CaffeineMC, optimizes Minecraft's game logic and server-side tick performance. While Sodium focuses on rendering (client-side FPS), Lithium targets the systems that run every game tick: entity AI, block ticking, world generation, collision detection, and pathfinding.

Lithium's optimizations include:

  • Entity AI and pathfinding — Rewrites mob AI goal selection and pathfinding algorithms to avoid redundant calculations. This significantly reduces tick time in areas with many mobs.
  • Block tick scheduling — Replaces the vanilla tick scheduling system with a more efficient data structure, reducing overhead for redstone, fluids, and crop growth.
  • Collision detection — Optimizes entity-block and entity-entity collision checks using spatial acceleration structures, reducing the cost of physics calculations in crowded areas.
  • Chunk serialization — Improves the speed of saving and loading chunks, which reduces autosave lag spikes and speeds up world loading.

Lithium works on both the client (for singleplayer worlds) and the server. On a dedicated server, it improves TPS (ticks per second) and reduces lag for all connected players. It does not change any game mechanics or behavior — all optimizations are strictly performance-focused and produce identical results to vanilla logic.

Phosphor / Starlight

Minecraft's lighting engine is one of the most expensive subsystems during chunk loading and block updates. Two mods address this:

  • Phosphor — An older mod (also by CaffeineMC) that optimizes the vanilla lighting engine's data structures and propagation algorithms. It reduces the cost of light updates without replacing the engine entirely. Phosphor is compatible with most other mods since it does not change the lighting engine's architecture.
  • Starlight — A more aggressive replacement by Spottedleaf that completely rewrites the lighting engine from scratch. Starlight is significantly faster than Phosphor, often making light updates 20 to 50 times faster. Chunk loading is noticeably smoother with Starlight, especially in complex cave systems with many light sources.

For modern Minecraft versions (1.20+), Starlight is the recommended choice. Note that as of Minecraft 1.20, Mojang has incorporated some of Starlight's improvements into vanilla, so the gains are smaller on recent versions. Use one or the other — Phosphor and Starlight are not compatible with each other.

Iris Shaders

Iris is a shader mod for Fabric that provides compatibility with most OptiFine shader packs while running on top of Sodium's optimized rendering engine. This means you get both the performance benefits of Sodium and the visual enhancements of shaders — something that was previously only possible through OptiFine.

Iris supports the majority of popular shader packs, including BSL, Complementary, Sildur's Vibrant, and many others. Compatibility is not 100% with every pack, but the most-used ones work well. Iris is actively developed and compatibility improves with each release.

To install Iris:

  1. Download Iris from Modrinth or irisshaders.dev.
  2. Place the Iris .jar file in your .minecraft/mods folder alongside Sodium (Iris requires Sodium as a dependency).
  3. Download shader packs (.zip files) and place them in .minecraft/shaderpacks.
  4. In-game, go to Options > Video Settings > Shader Packs to select and configure your shader pack.

Iris with Sodium typically delivers better FPS than OptiFine with the same shader pack, because Sodium's rendering engine is more efficient than OptiFine's.

Fabric API & Mod Loader

The entire performance mod stack is built on the Fabric modding platform. Fabric was designed from the ground up for lightweight, modular mods that modify specific game systems without heavy abstraction layers. This makes it ideal for performance mods that need low-level access to Minecraft's internals.

To install Fabric:

  1. Download the Fabric Installer from fabricmc.net.
  2. Run the installer and select your Minecraft version. It will create a new launcher profile automatically.
  3. Download Fabric API from Modrinth or CurseForge. Fabric API is a required library that most Fabric mods depend on.
  4. Place the Fabric API .jar in your .minecraft/mods folder.

Fabric updates to new Minecraft versions very quickly — usually within hours of a new snapshot or release. This fast update cycle is one reason the performance mod community has consolidated around Fabric rather than Forge.

For the best Minecraft performance, install all of the following together. They are designed to be compatible and complementary:

  1. Fabric Loader — The mod loader itself. Install via the Fabric Installer.
  2. Fabric API — Required library for most Fabric mods.
  3. Sodium — Rendering engine replacement. The single biggest FPS improvement.
  4. Lithium — Game logic and tick optimization. Improves TPS and reduces lag spikes.
  5. Starlight — Lighting engine replacement. Faster chunk loading and light updates. (Skip on 1.20+ if using vanilla lighting improvements.)
  6. Iris — Shader support on top of Sodium. Only needed if you want shaders.
  7. LazyDFU — Defers unnecessary DataFixerUpper initialization, significantly reducing game startup time. The DFU system converts old world data to new formats, but it initializes eagerly even when not needed. LazyDFU makes it load on demand. (Less impactful on 1.20+ where Mojang improved startup.)
  8. FerriteCore — Reduces Minecraft's memory usage by optimizing how block states, models, and properties are stored in RAM. Can reduce memory consumption by several hundred megabytes, which helps prevent garbage collection stutters and allows lower RAM allocations.

This stack is used by most competitive and technical Minecraft players as a baseline. All mods are client-side (except Lithium, which also helps servers). None of them change gameplay.

Installation

Step-by-step installation for the full performance stack:

  1. Download and run the Fabric Installer from fabricmc.net. Select your Minecraft version and click Install. This creates a new "fabric-loader" profile in the Minecraft Launcher.
  2. Open the .minecraft/mods folder. If it does not exist, create it. On Windows, this is typically %appdata%/.minecraft/mods. On macOS, ~/Library/Application Support/minecraft/mods. On Linux, ~/.minecraft/mods.
  3. Download the following .jar files from Modrinth (all are free). Make sure each file matches your Minecraft version:
    • Fabric API
    • Sodium
    • Lithium
    • Starlight (if available for your version)
    • Iris (optional, for shaders)
    • LazyDFU (if available for your version)
    • FerriteCore
  4. Place all downloaded .jar files into the .minecraft/mods folder.
  5. Launch Minecraft using the "fabric-loader" profile in the launcher.
  6. Verify installation: in-game, press F3 to open the debug screen. The top-left section will show "Fabric" and list loaded mods. Sodium's video settings screen replaces the vanilla one with its own, more detailed options panel.

OptiFine vs Sodium

For years, OptiFine was the only meaningful performance mod for Minecraft. It combined rendering optimization, shader support, connected textures, dynamic lighting, and zoom into a single package. With the rise of the Fabric performance stack, OptiFine is no longer the default recommendation for most players.

Where Sodium wins

  • Raw performance — Sodium consistently delivers higher FPS than OptiFine in benchmarks, often by 30–50% or more. Sodium's rendering pipeline is more modern and better-optimized.
  • Mod compatibility — OptiFine is a closed-source, monolithic mod that modifies many game systems at once. This causes widespread incompatibilities with other mods, especially on Fabric. Sodium, Lithium, and the rest of the stack are modular and designed to be compatible with the wider mod ecosystem.
  • Open source — Sodium and its companion mods are open source. Bugs are fixed faster, the code can be audited, and other mod developers can ensure compatibility.
  • Shader performance — Iris running on Sodium typically delivers better FPS with shaders than OptiFine does with the same shader pack.

Where OptiFine is still useful

  • Connected textures — OptiFine supports connected textures (CTM) natively. On Fabric, you need a separate mod like Continuity to get this feature with Sodium.
  • Custom entity models (CEM) — Some resource packs use OptiFine's custom entity model format. Fabric alternatives like Entity Model Features exist but may not support every pack.
  • Dynamic lighting — OptiFine makes held torches and other light sources illuminate nearby blocks in real time. On Fabric, the LambDynamicLights mod provides equivalent functionality.
  • Forge support — If you are playing on Forge with a large modpack, OptiFine may be your only option since Sodium is primarily a Fabric mod. (Embeddium and Rubidium are Forge ports/forks of Sodium for players who need Forge compatibility.)

For most players on modern Minecraft versions, the Fabric + Sodium stack is the better choice. It is faster, more compatible, and actively maintained by a responsive open-source community. OptiFine remains relevant primarily for Forge users and players who depend on specific OptiFine-only resource pack features.

Run a modded Minecraft server

Desert Forge Game Hosting gives you a Minecraft server with Fabric or Forge support — from $2/week, ready for modded play.

Get a server

← Back to Minecraft Mod Wiki

Quick Facts

  • Primary: Sodium by CaffeineMC
  • Platform: Fabric
  • MC Version: 1.16+
  • Download: Modrinth
DF: Game Hosting

Modded Minecraft servers from $2/week with Fabric or Forge pre-installed.

Get a server