LeanCore-1.8.0.jar
What's new
Changelog (1.8.0)
Added
- Chunk retention: chunks that just left every player's view stay loaded while the heap after GC is under 50% (
chunkRetentionMaxPostGcRatio), so walking back does not reload them from disk. New holds stop at 45%; above 50% the farthest go first, 64 every 2s. Chunks nearest to an online player are held first (chunkRetentionMaxDistanceBlocks). Released on any pressure, after 10 minutes, or when the player returns. Held chunks stop ticking - Chunk rate brake: on TIGHT and CRITICAL each player's chunk send rate is capped at 512 and 192 sections/s; COMFORT and WATCH give the engine rate back. Stays off while QuantumHy is loaded
- Pressure line in
/leancore status: heap after GC, old gen, allocation rate, GC time, growth trend and time to TIGHT - Hytale 0.7 support
dedicatedViewRadiusGraceSeconds(default 600): how long dedicated hosts wait after start before trimming view radius, previously fixed at 10 minutes
Changed
- Memory tiers follow the heap left after garbage collection and old gen after GC instead of the raw heap, so garbage between collections no longer triggers cuts. Raw heap alone only counts as CRITICAL at 97%
- Solo (LITE) checks pressure every 5s and reacts at once when it rises
- Policy rollback compares heap after GC and only undoes a change that gave view back; a cut is never undone because the heap kept rising
- STANDARD/FULL apply the policy for the current tier directly; the bandit no longer picks policies
- LeanCore no longer unloads chunks: the engine already unloads every chunk no player tracks after about 7.5s, so LeanCore only ever caught chunks the engine keeps on purpose.
unloadEnabled,liteUnloadEnabledand the probe gate stay in the config with no effect
Removed
- Holdout group (10% of players skipped view cuts)
Fixed
- Regional probe failing on Hytale 0.7 (
getBlockReferencesremoved by the engine) - View radius cuts compounded on every pass until they hit the floor (4 chunks on servers) and never came back; cuts now start from the radius the player asked for, and COMFORT gives it back
- COMFORT no longer trims anyone's view: presets and per-player demand only shape cuts under pressure
- STANDARD/FULL tiers, learned history and rollback used the raw heap; they now use the heap after GC like LITE
Notes
- Drop-in from 1.7.2;
LeanCore.jsonand learning state are kept, new keys get defaults
License: MIT
This mod has no additional files

