Skip to content

Add Bluemap support to Fabric 1.20#2

Merged
ffernn-dev merged 11 commits intoffernn-dev:fabric/1.20from
takase1121:fabric/1.20
Jan 7, 2025
Merged

Add Bluemap support to Fabric 1.20#2
ffernn-dev merged 11 commits intoffernn-dev:fabric/1.20from
takase1121:fabric/1.20

Conversation

@ffernn-dev
Copy link
Owner

@ffernn-dev ffernn-dev commented Jan 7, 2025

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

by takase1121

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.
@ffernn-dev ffernn-dev merged commit 870dc93 into ffernn-dev:fabric/1.20 Jan 7, 2025
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.

3 participants