flux_applied-1.2.5.jar
Curse Maven Snippet
What's new
Reduce MekAE Upgrade Integration Tick Cost
Old Approach
Every world tick:
- Iterate over all candidate machines.
- Reflectively call
hasAEUpgrade(). - Query the energy capability.
- Continue checking every tick even when there is no upgrade or no energy.
New Approach
- Refresh machine upgrade status only once every 5 seconds.
- Only machines confirmed to have the AE Upgrade installed enter
activeMachines. - Each tick, iterate only over
activeMachinesinstead of all candidate machines. - After finding a machine's
IEnergyStorage, cache it to avoid repeatedly querying the capability. - When a machine has no space, no charge, or is temporarily unable to transfer energy, use
nextQueryto delay the retry by 100 ticks. - When a machine becomes invalid, is unloaded, or leaves the current dimension, clear the energy cache and scheduling state.
- When the linkage is disabled in config, the world tick returns directly and performs no scanning.
- On first entering a dimension, discover already-loaded target machines; afterward, do not perform full discovery every tick.
This mod has no additional files

