Skip to content

feat: add composable racing-line overlays to Analyse - #255

Open
Korupt-virus wants to merge 3 commits into
mainfrom
feat/103-racing-line-overlay
Open

feat: add composable racing-line overlays to Analyse#255
Korupt-virus wants to merge 3 commits into
mainfrom
feat/103-racing-line-overlay

Conversation

@Korupt-virus

@Korupt-virus Korupt-virus commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • show game-provided ACC and AC Evo reference racing lines in both the 2D Analyse track map and 3D car view, including each game's coordinate transform
  • replace the exclusive 2D overlay cycle with an Overlays dropdown whose Inputs, Segments, Sectors, and Racing line checkboxes can be combined
  • consolidate 3D display toggles into a matching View dropdown and add an independent Racing line toggle
  • persist 2D overlay selections while hiding Racing line controls when the selected track has no reference data
  • preserve unsupported-game and Live Setup Engineer behavior while adding localized labels, renderer coverage, seeded cross-game coverage, and release notes

Behavior

Racing line displays reference geometry supplied by the game data. It is not a generated or ML-derived optimal line. In 3D, only nearby line sections render around the current car position.

Testing

  • bunx oxlint .
  • bun run typecheck
  • bun test ./client/test/static-track-drawing.test.ts
  • bun test test/tooling/theme-contract.test.ts --timeout 60000
  • bun test test/tooling/changelog.test.ts --timeout 60000
  • focused seeded Playwright racing-line scenario covering combined 2D overlays, 3D line pixels, state across ACC and AC Evo laps, and unavailable controls for FM
  • browser smoke proof for combined 2D overlays and 3D View controls

Full seeded shared-controls scenario still reaches the unchanged speed-readout assertion at playwright/tests/seeded/analyse/controls.ts:75; focused racing-line scenario passes.

Closes #103

@Korupt-virus
Korupt-virus requested a review from a team August 12, 2026 19:33
@Snazzie

Snazzie commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Can you expand on what this does?

@Korupt-virus

Copy link
Copy Markdown
Contributor Author

Can you expand on what this does?

image Adds a magenta racing line to show "optimal" racing line right now it just takes from the game, but can be used in future for ML racing line.

@Snazzie

Snazzie commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Can you expand on what this does?

image Adds a magenta racing line to show "optimal" racing line right now it just takes from the game, but can be used in future for ML racing line.

can we add this to 3D render aswell. and make it a toggle, rather than cycle

@Snazzie

Snazzie commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

we also might want to turn the toggles into a drop down menu, gonna run out of space

@Korupt-virus

Copy link
Copy Markdown
Contributor Author

we also might want to turn the toggles into a drop down menu, gonna run out of space

what about doing a drop down? like what if i want segments, my inputs, and optimal all at the same time?

@Snazzie

Snazzie commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

we also might want to turn the toggles into a drop down menu, gonna run out of space

what about doing a drop down? like what if i want segments, my inputs, and optimal all at the same time?

thats what i am suggesting. toggles go into the dropdown menu

@Korupt-virus Korupt-virus changed the title feat: add Analyse racing line overlay feat: add composable racing-line overlays to Analyse Aug 13, 2026
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.

Render the ACC reference racing line as an overlay in the Analyse track map

2 participants