DH Optimizer 1.0.0 (Fabric 1.21.1)
Curse Maven Snippet
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,
NORMALsync, memory-mapped I/O (mmap), page cache, and per-connectionPreparedStatementcaching - Zero-Copy Zstd Engine with pooled native
zstd-jnicontexts - Multiplayer Payload LRU Cache to avoid re-compressing shared LOD sync payloads
- SQLite Turbo Engine: WAL mode,
- Threading & CPU Overhead:
- Sub-millisecond
LockSupport.parkNanosframe-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
- Sub-millisecond
- 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
- Added
Notes
- Verified against Distant Horizons
3.3.3via 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