
Create: Railway Evolution
Smart traffic control and collision avoidance for Create trains. No more signals needed.
Список изменений
🚂 Railway Evolution v6 — [THE PERFORMANCE & STABILITY CORE]
This update represents the most significant refinement of the Railway Evolution core to date. By rigorously auditing the "hot paths" of our AI logic and eliminating excessive object allocation, we have achieved a new level of tick-rate stability. The focus of v6 is seamless performance: keeping the high-speed traffic flowing without burdening the Java Garbage Collector, even in dense, complex rail networks.
✨ Key Features of v6:
- Zero-Allocation Tick Cycle: Major backend refactor of the
VirtualBlockSystemandReservationManager. By implementing key-based lookups and singleton patterns, we have eliminated redundant object creation during frequent reservation renewals. - Heuristic Optimization: Advanced mathematical refinement for
AccidentZoneMemory(distance-squared comparison) drastically reduces CPU overhead during proximity checks. - AI Logic Cleanup: Streamlined state management and buffer reuse in the
EcosystemRegistryensures that player-train interactions remain fluid and responsive without triggering GC spikes. - Refinement of the Core: While the 5,000+ line
TrainAIControllerremains the stable authority, all surrounding support systems have been optimized for maximum efficiency.
🛠 Technical Changelog (v6):
Performance & Memory Optimizations
- VirtualBlockSystem: Optimized
tryReserve()and reservation lifecycle management. Implemented key-based caching; renewal logic is now effectively zero-allocation. - JunctionReservationManager: Introduced
GRANTED_NO_GHOSTsingleton to replace transient result objects during intersection renewals. - AccidentZoneMemory: Switched to squared-distance heuristics, bypassing unnecessary
Math.sqrt()calls during multi-zone iterations. - EcosystemRegistry: Optimized
scanPlayerControls()by replacing transientHashSetallocations with a persistent class-level buffer (stillControlledBuf). - General Housekeeping: Removed redundant field lookups and variable shadowing in
TrainAIManagerandEcosystemRegistryto decrease instruction overhead per tick.
Logic & Reliability
- Conflict Resolution: Refactored
isHeadOnConflict()to use direct boolean comparison, reducing method-invocation depth in high-frequency logic gates. - Cleanup: Conducted scope cleanup in
tickRefreshAll()to prevent state leakage and improve variable lifecycle efficiency.
🔮 Future Roadmap: Stability & Scalability
With the v6 performance optimizations complete, the core logic is now more efficient than ever. This release ensures that Railway Evolution remains performant even as your rail networks grow in scale and complexity. My focus remains on maintaining this high-performance core across future Minecraft versions, providing a rock-solid foundation for the world’s most advanced rail automation systems.
Developed by Fizzy_lovely (1xCodeTeam) — Precision engineering, zero-lag performance.
