DH Optimizer

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

DH Optimizer 1.0.0 (Fabric 1.21.1)

File nameDH-optimizer-1.0.0-mc1.21.1.jar
Uploader
DarimaroDarimaro
Uploaded
Nov 18, 2026
Downloads
21
Size
107.8 KB
Mod Loaders
Fabric
File ID
9678115
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:dh-optimizer-1813841:9678115"

Learn more about Curse Maven

What's new

DH Optimizer v1.0.0 — Initial Release (Fabric 1.21.1)

External performance optimization addon built for Distant Horizons 3.3.3 (>= 3.3.0) on Fabric 1.21.1 (Java 21+).

Key Features

  • OpenGL & Shader Pipeline:
    • Discard-free Early-Z split pass for distant opaque LOD sections beyond the near-clip fade shell
    • Optimized DH terrain & SSAO GLSL shaders (closed-form Bayer 4x4, flat face normals LUT, golden-angle SSAO recurrence)
    • Per-pass VAO binding, IBO bind deduplication, and empty event loop short-circuiting
    • 60 FPS Adaptive Governor (vanilla visual quality at 60+ FPS; smooth half-res SSAO recovery below 16.6 ms, with automatic Iris Shaderpack deferral)
  • Storage, Compression & Multiplayer:
    • SQLite Turbo Engine: WAL mode, NORMAL sync, memory-mapped I/O (mmap), page cache, and per-connection PreparedStatement caching
    • Zero-Copy Zstd Engine with pooled native zstd-jni contexts
    • Multiplayer Payload LRU Cache to avoid re-compressing shared LOD sync payloads
  • Threading & CPU Overhead:
    • Sub-millisecond LockSupport.parkNanos frame-budget thread governor for DH worker pools
    • Striped positional locks, fast-path untinted block color lookup, section culling config snapshots, and lock-free light/pool fast paths
  • Diagnostics & Config:
    • Added /dhopt (status, reset, adaptive <auto|quality|performance>, spark) when Fabric API is installed
    • Module toggles configurable via config/dh-supreme-optimizer.properties

Notes

  • Verified against Distant Horizons 3.3.3 via automated bytecode checks and OpenGL shader compilation tests.
  • Designed to coexist cleanly with Sodium, Iris Shaders, Lithium, C2ME, FerriteCore, and Spark.

This mod has no additional files