Skip to content

Race your personal-best ghost straight from the finish screen - #205

Merged
swhitt merged 3 commits into
ThatGuyMcd:mainfrom
swhitt:feat/beat-my-best
Dec 1, 2026
Merged

swhitt merged 3 commits into
ThatGuyMcd:mainfrom
swhitt:feat/beat-my-best

Conversation

@swhitt

@swhitt swhitt commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Race your best from Last Run

Finishing a single-track Time Trial brings the result to the top of the launcher. The card shows the finish time, the gap to your previous personal best, and how you did on each lap. The race button receives focus on return.

On a first finish, Race this run sets the new recording as the ghost. On subsequent finishes, Race my best selects the fastest saved recording on the same course, racer, vehicle, lap count and ROM revision. Custom courses also match by content hash. Watch lap selects the start of the lap with the biggest time loss against the previous best. Watch Replay plays the full recording.

New single-track recordings save the player’s ghost poses alongside the replay. Starting a rematch loads those poses immediately. Older recordings and recordings from a different runtime retain the existing preparation path. Replay cleanup removes the local ghost alongside its recording.

Screenshots

Both screenshots come from the native launcher using a sample Ancient Lake result.

A first finish with the race button focused

A finish 0.18 seconds off a personal best, with lap two highlighted and the race button focused

Verification

  • Built the macOS game with RT64. All 215 host tests passed, along with the repository guard, tooling suite and pre-commit checks.
  • Captured all nine leaderboard layout states at 1024×600, 1280×800 and 1920×1080. The native launcher accepted keyboard input and an SDL virtual controller. Both selected the correct ghost, lap or full replay from the finish card.
  • On US v1.0 and Rev A, the diagnostic game driver completed Ancient Lake. All 2,534 newly recorded ghost poses matched the older replay-preparation path byte for byte. The independent verifier exported identical poses on each revision. Each rematch loaded the local poses before boot, spawned a distinct ghost racer, and finished all three laps. The native playback code selected lap two at update 931 on both real recordings.
  • Race simulation used a diagnostic renderer in a separate checkout with headless build fixes. Physical Metal output was outside this playtest.

@swhitt
swhitt merged commit 9da770f into ThatGuyMcd:main Dec 1, 2026
14 checks passed
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.

1 participant