Description
RailOptimization is a lightweight mod that makes powered rails and activator rails turn on and off up to 12x faster in complex rail networks.
The best result is that you notice nothing while it is operating, except smoother and faster rail updates. Vanilla behavior and the default power range are preserved unless you explicitly change the range.
Performance
| Benchmark scenario (use v2.0) | Fabric (up to) | NeoForge (up to) |
|---|---|---|
| Straight rail state changes | 9.38x | 16.69x |
| Mixed-slope state changes | 12.09x | 22.93x |
| Repeated unchanged-state updates (indirect power) | 48.69x | 38.30x |
Leak:
| Benchmark scenario (use v2.5-dev) | Fabric (up to) | NeoForge (up to) |
|---|---|---|
| Straight rail state changes | 14.00x | 22.59x |
| Mixed-slope state changes | 18.56x | 30.04x |
| Repeated unchanged-state updates (indirect power) | 52.27x | 40.15x |
Measured in local multi-round benchmarks at the default power range of 8 with updating length 17, comparing optimized and unoptimized rail updates on the same mod loader. Actual gains vary with rail layout, server load, hardware, power range, and other installed mods.
State-change results include both turning rails on and turning them off. The unchanged-state result measures repeated updates without a power-state change; it is not an on/off speedup or a whole-server speedup.
Features
- Fast updates across straight, ascending, descending, and mixed-slope rail networks.
- Greatly reduced cost for repeated updates that leave rail state unchanged.
- Optional power range from 1 to 64, with vanilla's default of 8 unchanged.
- Switch between vanilla and optimized update logic without restarting.
- Native builds for Fabric, Forge, and NeoForge, with no Architectury API dependency.
Install it with the default settings and it works without additional configuration.
Commands
| Command | Purpose |
|---|---|
/railoptimization |
Show the current state and power limit |
/railoptimization on |
Enable the optimized update path |
/railoptimization off |
Use vanilla update logic |
/railoptimization powerLimit <value> |
Set the rail power range from 1 to 64 |
/railoptimization reload |
Reload the configuration file |
Changing settings requires administrator permission. Settings are saved automatically in railoptimization.json and persist across restarts.
Compatibility
- Choose the file for your Minecraft version and mod loader.
- RailOptimization v1.2 and earlier are incompatible with Carpet TIS Addition. RailOptimization v1.3 and later are compatible.
- To compare a contraption with vanilla, use
/railoptimization offand trigger it again. If you find a behavioral difference, please report it with a minimal reproduction.
Acknowledgements
RailOptimization began as a fork of FxMorin's RailOptimization. My sincere thanks go to FxMorin and the original contributors for their work. The current implementation has since been extensively rewritten, but this project would not exist without their original work.
More Information
For source code, issue reports, or any other questions, please visit the RailOptimization GitHub repository.
How to Install RailOptimization (Mod)
RailOptimization by EasterGhost2 is verified for Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1 (latest release: 2.0, file size: 114 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1) and platform (Fabric, Forge, Neoforge, Quilt).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Quilt.
- Move the downloaded RailOptimization file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 2mo ago | 30 | ||||
| 2mo ago | 15 | ||||
| 2mo ago | 10 | ||||
| 2mo ago | 8 | ||||
| 2mo ago | 6 | ||||
| 2mo ago | 5 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 |
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
RailOptimization 2.0 brings an **INCREDIBLY** faster rail update engine, Forge and NeoForge support, and persistent configuration.
### What's New
- 6x faster** than v1.6 in complex rail network.
- Added **Forge and NeoForge support** alongside Fabric.
- Optimization and power-limit settings are now saved automatically in
railoptimization.jsonand restored after restarts. - Added
/railoptimization reloadto apply configuration-file changes without restarting.
### Improvements
- Reworked rail signal searches and propagation to reduce repeated work on straight and mixed-slope lines.
- Greatly reduced the cost of repeated neighbor updates that leave rail states unchanged.
- Reduced temporary allocations, repeated support checks, and redundant neighbor notifications.
- Improved **WorldThreader compatibility** by keeping update-cache invalidation independent between dimensions.
- Improved compatibility with modded redstone blocks and rail variants on Forge and NeoForge.
### Fixes
- Corrected direction-dependent rail update ordering, including observer and piston/BUD microtiming at rail endpoints.
The default rail power range remains **8**; extending it is still optional.
> This snapshot further reduces rail-update overhead on Fabric and NeoForge.
### Improvements
- Reduced repeated support checks for powered and activator rails, including slopes
- Removed duplicate neighbor notifications at straight rail endpoints while preserving the order of the first notifications
- Reduced redundant cache lookups and temporary allocations during rail updates
> This snapshot further reduces rail-update overhead on Fabric and NeoForge.
### Improvements
- Reduced repeated support checks for powered and activator rails, including slopes
- Removed duplicate neighbor notifications at straight rail endpoints while preserving the order of the first notifications
- Reduced redundant cache lookups and temporary allocations during rail updates