
RailOptimization
A simple mod that makes powered/activator rails turn on/off up to 4x faster. Fix vital crash.
- Загрузки
- 457K
- Подписчики
- 117
- Обновлён
- 24 июля 2026 г.
- Лицензия
- GPL-3.0-only
Опубликован 15 ноября 2023 г.
Description
It is a simple mod that makes powered/activator rails turn on/off up to 4x faster. The best working condition is that you feel nothing when it is operating but smooth and fast rail updates.
Before you download
Please allow me to convey my sincere gratitude towards FX Morin for his code! Basic algorithm is written by FX Morin and I just do some little adjustment to make it operating better.
What's new
- An update of FX's RailOptimization for 1.16-1.21.x/26.x fabric.
- Make it working faster in complex rail networks.
- Fix the severe crash when loading the mod.
- Lighter code implementation by removing architectury API.
Known issue
- Incompatible with any version of Carpet TIS Addition(CTA) before v1.2. Since v1.3, it has been fixed.
For more information, please access https://github.com/EasterGhost/RailOptimization
Ченджлог
1.6Релиз1.20.6, 1.21, 1.21.1 · 24 июля 2026 г.
RailOptimization v1.6
RailOptimization v1.6 further reduces the cost of powered rail and activator rail updates, especially in frequently changing rail networks.
What's New
- Added
/railoptimization powerLimit <value>to change the powered/activator rail signal range from 1 to 64. The default remains 8 and changing it requires administrator permission. /railoptimizationnow displays both the optimization state and the current power limit.
Improvements
- Reworked rail traversal and search caching to avoid repeated path scans during the same update.
- Replaced the per-update hash map with a compact cache designed for Minecraft's short rail signal paths.
- Reused update contexts and mutable positions to reduce temporary allocations and garbage collection pressure.
- Cached direct redstone power checks and improved the fast path for straight rail lines.
Fixes
- Rail-shape lookup tables no longer rely on hard-coded enum ordinal ordering.
- Rail-search cache entries are isolated between update phases to prevent unrelated search results from being reused.
1.6Релиз1.21.2, 1.21.3, 1.21.4 · 24 июля 2026 г.
RailOptimization v1.6
RailOptimization v1.6 further reduces the cost of powered rail and activator rail updates, especially in frequently changing rail networks.
What's New
- Added
/railoptimization powerLimit <value>to change the powered/activator rail signal range from 1 to 64. The default remains 8 and changing it requires administrator permission. /railoptimizationnow displays both the optimization state and the current power limit.
Improvements
- Reworked rail traversal and search caching to avoid repeated path scans during the same update.
- Replaced the per-update hash map with a compact cache designed for Minecraft's short rail signal paths.
- Reused update contexts and mutable positions to reduce temporary allocations and garbage collection pressure.
- Cached direct redstone power checks and improved the fast path for straight rail lines.
Fixes
- Rail-shape lookup tables no longer rely on hard-coded enum ordinal ordering.
- Rail-search cache entries are isolated between update phases to prevent unrelated search results from being reused.
1.6Релиз1.21.8, 1.21.9, 1.21.10 · 24 июля 2026 г.
RailOptimization v1.6
RailOptimization v1.6 further reduces the cost of powered rail and activator rail updates, especially in frequently changing rail networks.
What's New
- Added
/railoptimization powerLimit <value>to change the powered/activator rail signal range from 1 to 64. The default remains 8 and changing it requires administrator permission. /railoptimizationnow displays both the optimization state and the current power limit.
Improvements
- Reworked rail traversal and search caching to avoid repeated path scans during the same update.
- Replaced the per-update hash map with a compact cache designed for Minecraft's short rail signal paths.
- Reused update contexts and mutable positions to reduce temporary allocations and garbage collection pressure.
- Cached direct redstone power checks and improved the fast path for straight rail lines.
Fixes
- Rail-shape lookup tables no longer rely on hard-coded enum ordinal ordering.
- Rail-search cache entries are isolated between update phases to prevent unrelated search results from being reused.
1.6Релиз1.21.11 · 24 июля 2026 г.
RailOptimization v1.6
RailOptimization v1.6 further reduces the cost of powered rail and activator rail updates, especially in frequently changing rail networks.
What's New
- Added
/railoptimization powerLimit <value>to change the powered/activator rail signal range from 1 to 64. The default remains 8 and changing it requires administrator permission. /railoptimizationnow displays both the optimization state and the current power limit.
Improvements
- Reworked rail traversal and search caching to avoid repeated path scans during the same update.
- Replaced the per-update hash map with a compact cache designed for Minecraft's short rail signal paths.
- Reused update contexts and mutable positions to reduce temporary allocations and garbage collection pressure.
- Cached direct redstone power checks and improved the fast path for straight rail lines.
Fixes
- Rail-shape lookup tables no longer rely on hard-coded enum ordinal ordering.
- Rail-search cache entries are isolated between update phases to prevent unrelated search results from being reused.
1.6Релиз26.1.1, 26.1.2, 26.2 · 24 июля 2026 г.
RailOptimization v1.6
RailOptimization v1.6 further reduces the cost of powered rail and activator rail updates, especially in frequently changing rail networks.
What's New
- Added
/railoptimization powerLimit <value>to change the powered/activator rail signal range from 1 to 64. The default remains 8 and changing it requires administrator permission. /railoptimizationnow displays both the optimization state and the current power limit.
Improvements
- Reworked rail traversal and search caching to avoid repeated path scans during the same update.
- Replaced the per-update hash map with a compact cache designed for Minecraft's short rail signal paths.
- Reused update contexts and mutable positions to reduce temporary allocations and garbage collection pressure.
- Cached direct redstone power checks and improved the fast path for straight rail lines.
Fixes
- Rail-shape lookup tables no longer rely on hard-coded enum ordinal ordering.
- Rail-search cache entries are isolated between update phases to prevent unrelated search results from being reused.
1.5.1Релиз1.20.6, 1.21, 1.21.1 · 9 июля 2026 г.
RailOptimization v1.5.1
Fixed a crash that could happen during powered rail neighbor updates in Minecraft 1.20.x-1.21.1.
- Fixed a null source position in rail update notifications
- Improved compatibility with redstone-powered rail update chains
Note
Only v1.5 in 1.20-1.21.1 is affected, older versions work normally.
1.5-deprecatedАльфа1.20.6, 1.21, 1.21.1 · 2 июля 2026 г.
RailOptimization v1.5
RailOptimization optimizes powered rail and activator rail redstone updates by replacing repeated vanilla recursive scans with a faster cached propagation path.
What's New
- Sloped powered rails are now included in the optimized batch propagation path. Long rail lines containing ascending or descending rails no longer fall back to the slower vanilla propagation step after a rail state changes.
- Direction-sensitive slope traversal improves correctness for asymmetric rail layouts, including continuous slopes, descent-to-ascent chains, and diagonal zigzag-style rail paths.
- Rail neighbor notification order has been adjusted to preserve vanilla-like update behavior, including observer and BUD-sensitive setups around rail endpoints.
- The optimized path keeps curved rails and unsupported shapes guarded, falling back to vanilla behavior where the fast path is not safe.
Fixes
- Fixed update-order differences that could prevent observer/BUD behavior from matching vanilla in some rail endpoint update chains.
1.5Релиз1.21.2, 1.21.3, 1.21.4 · 2 июля 2026 г.
RailOptimization v1.5
RailOptimization optimizes powered rail and activator rail redstone updates by replacing repeated vanilla recursive scans with a faster cached propagation path.
What's New
- Sloped powered rails are now included in the optimized batch propagation path. Long rail lines containing ascending or descending rails no longer fall back to the slower vanilla propagation step after a rail state changes.
- Direction-sensitive slope traversal improves correctness for asymmetric rail layouts, including continuous slopes, descent-to-ascent chains, and diagonal zigzag-style rail paths.
- Rail neighbor notification order has been adjusted to preserve vanilla-like update behavior, including observer and BUD-sensitive setups around rail endpoints.
- The optimized path keeps curved rails and unsupported shapes guarded, falling back to vanilla behavior where the fast path is not safe.
Fixes
- Fixed update-order differences that could prevent observer/BUD behavior from matching vanilla in some rail endpoint update chains.
Комментарии
Загружаем…