DH Optimizer 1.2.1 (Fabric 1.21.1)
Curse Maven Snippet
What's new
v1.2.1
Fixes & Optimizations
- Fixed DH memory pool reallocation regression: Raised
PhantomArrayListPooltrim thresholds (65,536longs /4 MiBbytes) soColumnRenderSourceandFullDataSourceV2DTOpooled buffers retain their backing arrays instead of reallocating on every section close. - Zero-Allocation
FullDataSourceV2lookups: AddedThreadLocalcursor reuse inFullDataSourceV2.getDataPointAtBlockPos, eliminating up to 49DhBlockPosheap allocations per tinted block whenlodBiomeBlending = 3. - Two-tier
DH-Render Loaderconcurrency cap (no fail-open): Replaced the 200ms fail-open timeout with a fair blocking gate (6threads steady-state,4during fast flight/high CPU/low FPS,3under heavy overload), plus mild CPU pre-throttling (65%–72%). - Universal frame & speed sampling (Iris compatible): Added deduplicated fallback sampling in
ClientApi.renderLodLayerso the adaptive governor keeps working even when Iris shaderpacks are enabled.
Improvements
- Blocks/second flight speed detection: Switched
AdaptiveQualityGovernorto EMA-smoothedblocks/s(flightSpeedThresholdBlocksPerSec = 15.0) for accurate fast-flight detection at high FPS. - Tighter CPU-aware throttling: Lowered
cpuThrottleThresholdfrom0.82to0.72and introducedDH-Render Loaderflight concurrency capping (renderLoaderFlightMaxConcurrency = 4). - Zero-Allocation Tint Getter & Color Cache: Added
ThreadLocal<DhBlockPosMutable>cursors inAbstractDhTintGetterandClientBlockStateColorCacheto cut GC pressure during LOD building.
This mod has no additional files