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

File nameDH-optimizer-1.1.0-mc1.21.1.jar
Uploader
DarimaroDarimaro
Uploaded
Nov 23, 2026
Downloads
19
Size
118.8 KB
Mod Loaders
Fabric
File ID
9765863
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

Fabric

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

Learn more about Curse Maven

What's new

v1.1.0+mc1.21.1 (Cumulative Update from v1.0.0)

Critical Bug Fixes

  • Fixed Distant Horizons LOD Render Freeze / AB-BA Deadlock: Retired and disabled the lossy 2048-stripe positional lock aliasing (PositionalLockProviderMixin / enableStripedLocks), which could break FullDataUpdatePropagatorV2 parent-to-child lock ordering, leak PriorityTaskPicker worker permits, and freeze Distant Horizons LOD updates/rendering after fast movement (e.g. Elytra flight). Legacy 1.0.0 config files with enableStripedLocks=true are automatically overridden to false on load.
  • Eliminated ChunkUpdateQueueManager CPU Busy-Spin: Added adaptive 2 ms backoff (enableChunkQueueBackoff=true) when ChunkUpdateQueueManager loops over debounced (250 ms) or saturated queue items without dispatching work, preventing unnecessary CPU saturation and allocation churn.

Performance & Modpack Compatibility

  • CPU- & Velocity-Aware Background Thread Governor: Upgraded FrameBudgetThreadGovernor with cached process CPU sampling (enableCpuAwareThrottling=true, cpuThrottleThreshold=0.82) and rapid camera-movement detection so DH background pools yield smoothly during heavy CPU load (>= 82%) or fast flight even when frame rate remains above 60 FPS. Also made task start-time tracking safe for nested executor tasks.
  • C2ME + DH ChunkWrapper Contention & Log Spam Fix: Added ChunkWrapperMixin (enableChunkWrapperThreadFix=true) to deduplicate and safely synchronize concurrent createDhHeightMaps() execution across non-DH worker threads (e.g., c2me-worker-*) and eliminate repeated non-DH heightmap thread warnings.
  • Per-Thread Biome Tint LUT: Activated AbstractDhTintGetterMixin + TintBiomeColorLut (enableBiomeTintLut=true) for faster lock-free per-thread biome tint caching, synchronized with DH tint cache invalidation epochs.

Telemetry & Config Cleanup

  • Updated /dhopt telemetry output to v1.1.0 and added Spins Avoided and Biome Tint LUT Hits counters.
  • Removed unused legacy DRS configuration keys (enableDrs, drsScale, drsFpsThreshold) and stale metadata references (striped locks) without breaking existing .properties files.

This mod has no additional files