Ashen Covenant Tweaks is a small performance patch for the NeoForge port of Origins on Minecraft 1.21.1. It was made for the Ashen Covenant modpack, but it works in any pack that has Origins.
What it fixes
- Power lookups. Origins rebuilt an entity's whole power list on every power check, many times per tick for every entity. This mod builds it once per tick and reuses it until the powers change.
- Powers by type. The list of powers of one type, for example "all Phasing powers", is also built once per tick instead of on every call.
- The phasing check. On every block collision Origins asked whether the entity may phase through the block, for every entity, even when nobody in the world has a Phasing power. Entities without one now skip the check. In our measurements, this check alone made about 40% of all memory the game allocated, which caused long garbage-collection freezes (1-2 seconds) every minute or two.
Nothing changes in gameplay: powers work exactly as before.
Requirements
- Minecraft 1.21.1, NeoForge 21.1+
- Origins (NeoForge) 0.3+
- Install on both the client and the server.
License
MIT. Feel free to include it in any modpack.