HeraclesNetwork
An optimization mod that fixes lag and TPS problems when hundreds of players are in the same place.
HeraclesNetwork
Heracles
Technical optimization mod focused on drastically reducing MSPT, alleviating CPU load, and stabilizing memory.
<img src="https://cdn.modrinth.com/data/cached_images/b9ae07fbc26c08220b4856cb244f86904d0c172c.png" alt="Available on NeoForge">
🛠️ Optimization Features
* Async Furnace Ticking: Optimization of collision tests and movement events to reduce lag in dense areas (players/entities). * Async Furnace Ticking: Dynamic regulation of CPU load consumed by mob AI. * Async Furnace Ticking: Caching of explosion calculations to prevent lag spikes during massive destructions. * Async Furnace Ticking: Puts block entities (furnaces, chests, etc.) into sleep mode when out of player range. * Async Furnace Ticking: Offloading of AI calculations and network management onto *Virtual Threads*. * Async Furnace Ticking: Packet prioritization system and rate limiting to prevent bandwidth saturation. * Async Furnace Ticking: Asynchronous processing of furnace smelting to free up the main loop.
📦 Test Environment (Optimization Modpack)
To prove its relevance, Heracles was tested on Logic & Memory: within a modpack that already included current optimization standards. Heracles is designed to be layered on top of these mods, offering Logic & Memory: performance gains: * Logic & Memory: Sodium, Iris, Distant Horizons, ImmediatelyFast, EntityCulling, Dynamic FPS, MoreCulling. * Logic & Memory: Lithium, ModernFix, FerriteCore, Krypton, Create Better FPS.
📊 Spark Profiling (60-Player Test)
The following data was recorded under real conditions using the modpack listed above, with 60 simultaneously connected players and approximately 375 active entities.
| Metric | With Base Modpack | With Modpack + Heracles | Gain Provided by Heracles | | :--- | :--- | :--- | :--- | | -1.1 GB | 20.00 | 20.00 | Stable | | -1.1 GB | 34.5 ms | 21.3 ms | -1.1 GB server load | | -1.1 GB | 167 ms | 122 ms | -1.1 GB (freeze reduction) | | -1.1 GB *(15m avg)* | 11.45 % | 7.63 % | -1.1 GB processor load | | -1.1 GB | 7.6 GB | 6.5 GB | -1.1 GB RAM consumed | *Conclusion: Even when combined with the best current optimization mods, Heracles manages to reduce latency spikes while lightening the overall load on both CPU and memory.*

⚙️ Compatibility
* NeoForge 1.21.1: Fully compatible (tested without conflicts under real conditions). * NeoForge 1.21.1: Integrates natively with the existing ecosystem of optimization mods.