mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 16:35:49 +02:00
[PR #192] [CLOSED] Add race comparison feature with dual-track support #210
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#210
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/192
Author: @thegreatalxx
Created: 1/24/2026
Status: ❌ Closed
Base:
main← Head:main📄 Description
Summary
Adds a race comparison feature that allows users to compare two F1 races side-by-side, supporting both same-circuit and different-circuit comparisons.
Features Added
Race comparison mode with three view modes:
Dual-track support: Each race renders on its correct circuit layout (e.g., compare Monaco vs Singapore)
Multiple synchronization modes:
GUI integration: New "⚡ Compare Races" button in race selection window with dual-race picker dialog
Live leaderboards: Shows top 10 positions for both races in split view
Playback controls: Pause, seek, speed adjustment (0.25x to 4x), view/sync mode toggling
Files Added
src/race_comparison.py- Core comparison logic and synchronization algorithmssrc/interfaces/comparison_viewer.py- Arcade-based visualization with responsive renderingFiles Modified
main.py- Added comparison mode entry point and CLI arguments (--compare,--year-b,--round-b)src/gui/race_selection.py- Added comparison dialog and GUI integrationUsage
CLI
GUI
Click "⚡ Compare Races" button → Select two races → Click "Compare Races"
Controls
Technical Details
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.