Introduction
This is a memory optimization mod. It limits the structure template cache by memory usage, automatically reclaims templates that haven't been used for a long time, reduces unnecessary memory usage during normal gameplay, and lowers the pressure of long-term operation.
Effects
When the cache exceeds its budget, the least recently used templates are evicted first, while recently used ones are kept. Tested in adventure modpacks with many structures, it saved about 20% of memory. This optimization does not break structure integrity or structure generation, so it's safe to add.
Note: The 1.0.0 implementation was too aggressive and slowed down structure loading. 1.1.0 has been refactored with almost no change to the optimization effect, so please update promptly!


