Skip to content

Conversation

@takase1121
Copy link

This is a backport of #63 to Fabric 1.20 (the server I am using), with a commit to render curved tracks. cc @C1200.

C1200 and others added 11 commits January 23, 2024 09:19
Large number of markers hurt BlueMap performance; and CTM often provides small
track segments that could be combined into larger segments.
This commit combines about 50% of tracks, depending on the track layout itself.
Works best with straight, non-branching tracks.
Simplify the line merging algorithm and take
advantage of multiple sort passes to merge
more lines.
By performing a tiny lookahead search when merging,
we are able to optimize parallel tracks up to 30% of original number of tracks provided by the CTM API.
The new strategy is to group every line by starting point,
and then iterate and merge through the list.
It works surprisingly well, in fact the result is only 11% of original.
The merging algorithm is incredibly slow, so
the number of paths merged is now determined by
the original size of the network.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants