Create FastTrack
A tiny standalone Forge 1.20.1 mod that fixes a performance hot-spot in Create's railway code by applying the track-network flood-fill optimisation to the published Create mod.
No ratings yet
Be the first to rate it.
Community listing page
Community listing page, reviews may not be monitored by the author.
Community voices
Reviews
Log in to review this mod
Reviews are written by ModDex members. Log in and you'll come right back to the review form.
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Required on the server. Installing it on the client adds functionality.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
# TrackFastRack
A tiny standalone Forge 1.20.1 mod that fixes a performance hot-spot in Create's railway code by applying
the track-network **flood-fill optimisation** to the published Create mod — no forked Create needed.
## The problem
Whenever a track is placed or broken, Create's `TrackGraph#findDisconnectedGraphs` runs a connected-component
flood fill over the entire rail network. In released Create (≤ 6.0.8) the BFS frontier is an `ArrayList`, and
popping from the head via `ArrayList#remove(0)` shifts the whole backing array on every pop — making the flood
fill O(n²).
On a large rail network (~80k nodes), a single track modification can walk **billions of elements**, causing
noticeable stutter and lag spikes while building or rerouting long train lines.
## The fix
This mod injects a single Mixin that replaces the frontier with an `ArrayDeque` (`poll()` is O(1)) and swaps
`stream().findFirst()` for a plain iterator, turning the flood fill into **O(n)**. The change is a faithful port
of Create fork commit `272e97604` ("Optimise train network hot paths").
## Verify it's working
On game start the mod logs `TrackGraph flood-fill self-test OK`, proving the optimised method bound correctly at
runtime.
TrackFastRack
A tiny standalone Forge 1.20.1 mod that fixes a performance hot-spot in Create's railway code by applying the track-network flood-fill optimisation to the published Create mod — no forked Create needed.
The problem
Whenever a track is placed or broken, Create's TrackGraph#findDisconnectedGraphs runs a connected-component
flood fill over the entire rail network. In released Create (≤ 6.0.8) the BFS frontier is an ArrayList, and
popping from the head via ArrayList#remove(0) shifts the whole backing array on every pop — making the flood
fill O(n²).
On a large rail network (~80k nodes), a single track modification can walk billions of elements, causing noticeable stutter and lag spikes while building or rerouting long train lines.
The fix
This mod injects a single Mixin that replaces the frontier with an ArrayDeque (poll() is O(1)) and swaps
stream().findFirst() for a plain iterator, turning the flood fill into O(n). The change is a faithful port
of Create fork commit 272e97604 ("Optimise train network hot paths").
Verify it's working
On game start the mod logs TrackGraph flood-fill self-test OK, proving the optimised method bound correctly at
runtime.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
Stats
- Downloads
-
<1,000
<1,000
<1,000
- Used in
- 1 modpack
- Followers
- 0
- In stacks
- 1
- Created
-
- Last synced
-
Nov 7, 2026 4:45 AM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before this date changes.
How syncing works
External Links
Stats
- Downloads
-
<1,000
<1,000
<1,000
- Used in
- 1 modpack
- Followers
- 0
- In stacks
- 1
- Created
-
- Last synced
-
Nov 7, 2026 4:45 AM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before this date changes.
How syncing works