COWMODSКаталог модов

RailOptimization

A simple mod that makes powered/activator rails turn on/off up to 20x faster.

Автор: EasterGhost2582,1 тыс.128обновлён 14 окт. 2026 г.
Механики игрыОптимизацияУтилиты

Описание

Description

RailOptimization is a lightweight mod that makes powered rails and activator rails turn on and off up to 20x 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 changes9.38x16.69x
Mixed-slope state changes12.09x22.93x
Repeated unchanged-state updates (indirect power)48.69x38.30x

Snapshot:

Benchmark scenario (use v2.5-snapshot.2)Fabric (up to)NeoForge (up to)
Straight rail state changes16.06x28.40x
Mixed-slope state changes21.44x38.28x
Repeated unchanged-state updates (indirect power)52.27x40.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

CommandPurpose
/railoptimizationShow the current state and power limit
/railoptimization onEnable the optimized update path
/railoptimization offUse vanilla update logic
/railoptimization powerLimit <value>Set the rail power range from 1 to 64
/railoptimization reloadReload 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 off and 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.

Special thanks also go to JellySquid, 2No2Name, and the other Lithium contributors. RailOptimization's rail-specific batch-write design was developed by studying and drawing on their source code and existing palette and chunk-storage optimizations. When Lithium is installed, RailOptimization uses its optimized palette and bit-storage implementations and integrates with its block-change tracking. Lithium remains optional.

More Information

For source code, issue reports, or any other questions, please visit the RailOptimization GitHub repository.

Галерея

Последние версии

Все версии →
beta

RailOptimization 2.5-snapshot 1

2.5-snapshot.1
14 окт. 2026 г.132Minecraft: 26.1, 26.1.1, 26.1.2, 26.2, 26.3neoforge
Скачать
Что нового
## RailOptimization v2.5-snapshot 1 > This snapshot introduces a new batch-write and notification engine for faster powered and activator rail updates. RailOptimization 2.0 remains the stable release while feedback is collected. ### Improvements - Added rail-specific batch writes grouped by chunk section, developed by studying and drawing on Lithium's source code and its existing palette optimizations, to reduce the overhead of turning rails on and off. - Batched neighbor notifications and removed repeated NC updates while retaining vanilla-compatible update ordering and native nested-update processing. - Combined signal searches with depower planning to reduce repeated work when turning rails off. - Reused chunk and section references during signal checks and neighbor notifications, while continuing to read live block states. - Preserved Lithium's block tracking and cache invalidation when using batch writes. Lithium remains optional. ### Performance | Combined on/off updates | Fabric (up to) | NeoForge (up to) | | ----------------------- | ---------------: | ---------------: | | Straight rails | **15.10x** | **26.04x** | | Mixed-slope rails | **20.07x** | **34.20x** | Measured locally at the default power range of 8, without Lithium, using per-run median timings against the same loader without RailOptimization. Actual gains vary with hardware, JVM, server load, rail layout, and other installed mods; these are rail-update speedups, not whole-server speedups. The default power range, commands, and configuration remain unchanged. Please report any differences from vanilla behavior with a minimal reproduction. ### Acknowledgements Special thanks to JellySquid, 2No2Name, and the other [Lithium contributors](https://github.com/CaffeineMC/lithium) for the source code and optimization work that informed this batch-write design. When installed, Lithium also supplies the optimized palette and bit-storage implementations used by RailOptimization. Lithium remains optional.
beta

RailOptimization 2.5-snapshot 1

2.5-snapshot.1
14 окт. 2026 г.2 тыс.Minecraft: 26.1, 26.1.1, 26.1.2, 26.2, 26.3fabric, quilt
Скачать
Что нового
## RailOptimization v2.5-snapshot 1 > This snapshot introduces a new batch-write and notification engine for faster powered and activator rail updates. RailOptimization 2.0 remains the stable release while feedback is collected. ### Improvements - Added rail-specific batch writes grouped by chunk section, developed by studying and drawing on Lithium's source code and its existing palette optimizations, to reduce the overhead of turning rails on and off. - Batched neighbor notifications and removed repeated NC updates while retaining vanilla-compatible update ordering and native nested-update processing. - Combined signal searches with depower planning to reduce repeated work when turning rails off. - Reused chunk and section references during signal checks and neighbor notifications, while continuing to read live block states. - Preserved Lithium's block tracking and cache invalidation when using batch writes. Lithium remains optional. ### Performance | Combined on/off updates | Fabric (up to) | NeoForge (up to) | | ----------------------- | ---------------: | ---------------: | | Straight rails | **15.10x** | **26.04x** | | Mixed-slope rails | **20.07x** | **34.20x** | Measured locally at the default power range of 8, without Lithium, using per-run median timings against the same loader without RailOptimization. Actual gains vary with hardware, JVM, server load, rail layout, and other installed mods; these are rail-update speedups, not whole-server speedups. The default power range, commands, and configuration remain unchanged. Please report any differences from vanilla behavior with a minimal reproduction. ### Acknowledgements Special thanks to JellySquid, 2No2Name, and the other [Lithium contributors](https://github.com/CaffeineMC/lithium) for the source code and optimization work that informed this batch-write design. When installed, Lithium also supplies the optimized palette and bit-storage implementations used by RailOptimization. Lithium remains optional.
release

RailOptimization 2.0

2.0
18 сент. 2026 г.449Minecraft: 26.1, 26.1.1, 26.1.2, 26.2, 26.3neoforge
Скачать
Что нового
## RailOptimization v2.0 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.json` and restored after restarts. - Added `/railoptimization reload` to 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.
release

RailOptimization 2.0

2.0
18 сент. 2026 г.6,6 тыс.Minecraft: 26.1, 26.1.1, 26.1.2, 26.2, 26.3fabric, quilt
Скачать
Что нового
## RailOptimization v2.0 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.json` and restored after restarts. - Added `/railoptimization reload` to 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.
release

RailOptimization 2.0

2.0
18 сент. 2026 г.108Minecraft: 1.21.11neoforge
Скачать
Что нового
## RailOptimization v2.0 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.json` and restored after restarts. - Added `/railoptimization reload` to 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.
release

RailOptimization 2.0

2.0
18 сент. 2026 г.1,8 тыс.Minecraft: 1.21.11fabric, quilt
Скачать
Что нового
## RailOptimization v2.0 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.json` and restored after restarts. - Added `/railoptimization reload` to 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.
release

RailOptimization 2.0

2.0
18 сент. 2026 г.83Minecraft: 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10neoforge
Скачать
Что нового
## RailOptimization v2.0 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.json` and restored after restarts. - Added `/railoptimization reload` to 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.
release

RailOptimization 2.0

2.0
18 сент. 2026 г.170Minecraft: 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10fabric, quilt
Скачать
Что нового
## RailOptimization v2.0 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.json` and restored after restarts. - Added `/railoptimization reload` to 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.
release

RailOptimization 2.0

2.0
18 сент. 2026 г.59Minecraft: 1.21.2, 1.21.3, 1.21.4neoforge
Скачать
Что нового
## RailOptimization v2.0 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.json` and restored after restarts. - Added `/railoptimization reload` to 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.
release

RailOptimization 2.0

2.0
18 сент. 2026 г.188Minecraft: 1.21.2, 1.21.3, 1.21.4fabric, quilt
Скачать
Что нового
## RailOptimization v2.0 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.json` and restored after restarts. - Added `/railoptimization reload` to 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.