promotional bannermobile promotional banner

Structure DFU Cache

Moves repetitive structure DataFixerUpper (DFU) migration to the startup phase and caches the result to improve TPS during heavy chunk loading.
Back to Files

Structure DFU Cache 1.2.0 — 26.2 NeoForge

File namestructure-dfu-cache-1.2.0+26.2-neoforge.jar
Uploader
THE_cattailTHE_cattail
Uploaded
Oct 27, 2026
Downloads
10
Size
59.7 KB
Mod Loaders
NeoForge
File ID
9341414
Type
R
Release
Supported game versions
  • 26.2

Curse Maven Snippet

NeoForge

implementation "curse.maven:structure-dfu-cache-1729471:9341414"

Learn more about Curse Maven

What's new

Structure DFU Cache 1.2.0

Features & Improvements

  • TOML configuration: Added config/structure_dfu_cache.toml (loaded on game startup; restart required after editing).
  • Configurable processing limits:
    • maxDecodedNbtMiB (default 1024): Positive integer in MiB tracking the NBT decoder's accounting of in-memory NBT objects and allocation overhead during processing (this does not measure total DFU memory).
    • maxCompressedResourceMiB (default 64): Positive integer in MiB setting the limit for compressed structure resource size.
  • Concurrency & memory estimation: Worker concurrency is budgeted based on available heap after deducting resident memory and a 2 GiB reserve, estimating total DFU memory at roughly 4x maxDecodedNbtMiB per worker (capped at 4 threads, leaving 1 CPU core free when more than 1 core is available). Higher quota values reduce worker concurrency to allocate more memory headroom.
  • Fallback behavior: Structures exceeding maxCompressedResourceMiB bypass startup pre-processing and are handed back to vanilla reading. Structures exceeding maxDecodedNbtMiB or failing conversion cache the raw compressed bytes as unoptimized resources to retry during future load or reload.

This mod has no additional files