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.2.1 (Fabric 1.21.1)

File nameDH-optimizer-1.2.1-mc1.21.1.jar
Uploader
DarimaroDarimaro
Uploaded
Nov 27, 2026
Downloads
38
Size
129.2 KB
Mod Loaders
Fabric
File ID
9840861
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

Fabric

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

Learn more about Curse Maven

What's new

v1.2.1

Fixes & Optimizations

  • Fixed DH memory pool reallocation regression: Raised PhantomArrayListPool trim thresholds (65,536 longs / 4 MiB bytes) so ColumnRenderSource and FullDataSourceV2DTO pooled buffers retain their backing arrays instead of reallocating on every section close.
  • Zero-Allocation FullDataSourceV2 lookups: Added ThreadLocal cursor reuse in FullDataSourceV2.getDataPointAtBlockPos, eliminating up to 49 DhBlockPos heap allocations per tinted block when lodBiomeBlending = 3.
  • Two-tier DH-Render Loader concurrency cap (no fail-open): Replaced the 200ms fail-open timeout with a fair blocking gate (6 threads steady-state, 4 during fast flight/high CPU/low FPS, 3 under heavy overload), plus mild CPU pre-throttling (65%–72%).
  • Universal frame & speed sampling (Iris compatible): Added deduplicated fallback sampling in ClientApi.renderLodLayer so the adaptive governor keeps working even when Iris shaderpacks are enabled.

Improvements

  • Blocks/second flight speed detection: Switched AdaptiveQualityGovernor to EMA-smoothed blocks/s (flightSpeedThresholdBlocksPerSec = 15.0) for accurate fast-flight detection at high FPS.
  • Tighter CPU-aware throttling: Lowered cpuThrottleThreshold from 0.82 to 0.72 and introduced DH-Render Loader flight concurrency capping (renderLoaderFlightMaxConcurrency = 4).
  • Zero-Allocation Tint Getter & Color Cache: Added ThreadLocal<DhBlockPosMutable> cursors in AbstractDhTintGetter and ClientBlockStateColorCache to cut GC pressure during LOD building.

This mod has no additional files