LighterCitadel Neo
A NeoForge 1.21.1 port of LighterCitadel by Misanthropy.
All credit for the original mod and its optimizations goes to Misanthropy. This is an unofficial port and is not affiliated with Misanthropy or the Citadel authors. If Misanthropy would like it taken down, I'll gladly remove it.
What it does
LighterCitadel Neo is an optimization and bug fix mod for Citadel, the library used by Alex's Mobs, Alex's Caves and many other mods. Citadel runs some checks on every entity, every tick, even when nothing needs them. LighterCitadel Neo skips that extra work while keeping Citadel's behaviour exactly the same.
- Faster entity ticking: skips Citadel's tick speed check for every entity when no tick speed effect is active, which is almost all the time.
- Cached lookups: Citadel's saved data and client tracker are looked up once instead of over and over.
- Lighter master tick: Citadel's per-tick bookkeeping exits early when nothing is scheduled.
- Faster sound and tick rate checks: skipped when no tick speed effect is active.
- Lighter hover animations: item tooltip animations use less memory, and a Citadel bug where that data grew forever is fixed.
- Lighter Patreon followers: skips the follower rendering work for players who aren't Citadel Patreon supporters.
- Memory leak fix: unloaded entities are removed from Citadel's tick list, so they can't keep an old world in memory after you leave it
Credits
Original mod by Misanthropy https://www.curseforge.com/minecraft/mc-mods/lightercitadel, which is licensed under GNU LGPL 3.0, this project is under the same license
License: GNU Lesser General Public License v3.0 (LGPL-3.0)
Original Source: https://github.com/shuttheirprayer/LighterCitadel
Neoforge Source: https://github.com/avectus1/LighterCitadel-Neo
Minor AI assistance was used to make this mod. This was playtested in my personal modpack with over 300 mods to make sure it loads correctly, but still if you find bugs or issues, please report them in github issues or cf comments, ty :D

