CurseForge · Minecraft mod
DH Optimizer
Unofficial performance addon for Distant Horizons featuring Early-Z GLSL passes, SQLite WAL/MMAP caching, and zero-copy Zstd.
Quick answer
Which DH Optimizer release should I use?
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.
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.
Install Distant Horizons: A Level of Detail mod first. We found matching files for this game-version and loader setup.
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.
- 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.
- 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.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 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
WALmode, memory-mapped I/O (mmap), page caching, and reuses compiledPreparedStatementobjects per connection instead of recompiling queries repeatedly.Zero-Copy Zstd Streams: Uses pooled native
zstd-jnicontexts 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.parkNanosbackoff 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 unneededPhantomReferencetracking 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.21.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
DH Optimizer versions and loaders
DH Optimizer 1.2.1 (Fabric 1.21.1)
DH-optimizer-1.2.1-mc1.21.1.jar
27 Nov 2026
DH Optimizer 1.1.0 (Fabric 1.21.1)
DH-optimizer-1.1.0-mc1.21.1.jar
23 Nov 2026
DH Optimizer 1.0.0 (Fabric 1.21.1)
DH-optimizer-1.0.0-mc1.21.1.jar
18 Nov 2026
Looking for an older file? The official CurseForge project page is in Resources.