Back to mods
DH Optimizer project artwork

CurseForge · Minecraft mod

DH Optimizer

Unofficial performance addon for Distant Horizons featuring Early-Z GLSL passes, SQLite WAL/MMAP caching, and zero-copy Zstd.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which DH Optimizer release should I use?

Updated 6 days ago
Latest stable file DH Optimizer 1.2.1 (Fabric 1.21.1)
Game version 1.21.1
Loader Fabric

DH Optimizer 1.2.1 (Fabric 1.21.1) targets 1.21.1 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is DH Optimizer required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does DH Optimizer 1.2.1 (Fabric 1.21.1) need?

DH Optimizer 1.2.1 (Fabric 1.21.1). Change the file and its required mods may change too.

All 1 required mods have matching files

Install Distant Horizons: A Level of Detail mod first. We found matching files for this game-version and loader setup.

Fabric API Optional for DH Optimizer 1.2.1 (Fabric 1.21.1)
optional
Matching file found Matched file: [1.21.1] Fabric API 0.116.18+1.21.1

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add DH Optimizer without breaking your instance.

Built for DH Optimizer 1.2.1 (Fabric 1.21.1). Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use DH Optimizer 1.2.1 (Fabric 1.21.1). It targets 1.21.1 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Distant Horizons: A Level of Detail mod first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside DH Optimizer 1.2.1 (Fabric 1.21.1). It opens that exact file at the source.

About this project

What does DH Optimizer add?

DH Optimizer

DH Optimizer is a lightweight, external performance addon for Distant Horizons on Fabric (Minecraft 1.21 / 1.21.1). It reduces Distant Horizons CPU, GPU, disk, and memory overhead without modifying Distant Horizons' files or breaking visual quality.

Unofficial Addon Notice: This is an independent community optimization mod that uses non-destructive Mixins. It does not redistribute or alter Distant Horizons binaries.


✨ What This Mod Improves (In Plain English)

Distant Horizons renders massive horizons by managing thousands of LOD sections, shaders, and SQLite database reads in the background. **DH Optimizer** streamlines those heavy bottlenecks behind the scenes:

🎨 Smoother GPU & Frame Rendering

  • Hardware Early-Z Split Pass: Moves distant opaque LOD terrain (beyond the near-clip fade shell) to a discard-free GLSL shader path so your GPU can skip hidden pixels early.

  • Optimized Terrain & SSAO Shaders: Eliminates per-pixel array allocations and redundant trigonometry inside Distant Horizons shaders while preserving vanilla DH visuals.

  • OpenGL State Deduplication: Binds VAOs once per pass, avoids redundant IBO/VBO state churn, and skips empty event dispatch loops on every buffer draw.

  • 60 FPS Adaptive Governor: Keeps visual quality 100% identical to vanilla Distant Horizons whenever your game runs at 60+ FPS. If frame times stay above 16.6 ms, it smoothly scales DH SSAO resolution/samples with hysteresis (no flickering) to recover smooth framerates.

    💾 Faster LOD Storage & Compression

  • SQLite Turbo Engine: Enables SQLite WAL mode, memory-mapped I/O (mmap), page caching, and reuses compiled PreparedStatement objects per connection instead of recompiling queries repeatedly.

  • Zero-Copy Zstd Streams: Uses pooled native zstd-jni contexts and direct buffer access to avoid unnecessary intermediate byte-array copies when saving or loading LOD data.

    ⚡ Lower CPU Usage & Fewer GC Micro-Stutters

  • FPS-Aware Background Thread Governor: Replaces coarse thread sleeps with sub-millisecond LockSupport.parkNanos backoff so DH background workers yield CPU cache headroom to the Render thread when FPS drops.

  • Lock-Free & Fast-Path Internals: Replaces contended positional locks with striped locks, adds an O(1) fast path for untinted block colors, snapshots section config lookups once per section, and bypasses unneeded PhantomReference tracking on heap-only pooled lists.

  • Multiplayer Payload LRU Cache: Caches encoded LOD sync payloads on servers/hosts so multiple players receiving the same section don't force redundant re-compression.

Project description from CurseForge.

Pick your setup

DH Optimizer by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

DH Optimizer versions and loaders

3 of 3 releases match

Looking for an older file? The official CurseForge project page is in Resources.