Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BlueMap support and schedule info to forge version #63

Open
wants to merge 10 commits into
base: forge/1.20
Choose a base branch
from

Conversation

C1200
Copy link

@C1200 C1200 commented Jan 20, 2024

Added BlueMap Support (Fixes #6)

  • Complete
    • Shows track layout
    • Shows trains
    • Shows signals and their state
    • Shows stations
    • Possibly make the curved track actually show as curved (Thanks to @takase1121)
    • Show schedule info on stations and trains
  • Todo

Added Schedule Info (Fixes #18 and #23)

  • Complete
    • Shows current schedule info for trains and stations
    • Make the display look nicer by using <ul>s instead of <div>s
  • Todo

takase1121 and others added 9 commits January 23, 2024 20:40
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.
@asdolo
Copy link

asdolo commented Feb 19, 2024

This is amazing! Is there a way to backport this to Forge 1.18?

@Vrokky
Copy link

Vrokky commented Sep 17, 2024

This is very cool, can I use this version already?

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.

4 participants