[PR #214] feat: Add driver analysis and advanced race features #223

Open
opened 2026-05-07 00:19:17 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/214
Author: @Mart89-GH
Created: 2/2/2026
Status: 🔄 Open

Base: mainHead: feature/driver-analysis-advanced-race-features


📝 Commits (1)

  • d7209e0 feat: Add driver analysis and advanced race features

📊 Changes

2 files changed (+1404 additions, -25 deletions)

View changed files

📝 src/interfaces/race_replay.py (+61 -1)
📝 src/ui_components.py (+1343 -24)

📄 Description

Summary

This PR adds comprehensive driver analysis tools and advanced race visualization features.

New Features

Driver Analysis (requires selecting 2 drivers with Shift+Click)

  • Driver Comparator (C): Side-by-side telemetry comparison showing speed, gear, DRS, throttle/brake bars, and speed history graph
  • Delta Display (G): Real-time time delta between drivers with trend indicators and history graph
  • Performance Radar (P): Radar chart visualizing driver metrics (Top Speed, Consistency, Tyre Management, Corner Speed, Acceleration)

Advanced Race Features

  • Sector Coloring (S): Legend for track sector performance colors (Purple=Session Best, Green=Personal Best, Yellow=Slower)
  • Battle Detector (O): Automatically detects DRS battles (<1s gap) with flashing alerts and overtake counter
  • Lap Time Chart (T): Graph showing lap time evolution for selected drivers
  • Incidents Timeline (E): Interactive timeline with SC, VSC, Red Flags, DNF events - click to jump to event

UI Improvements

  • Reset Button: Visual button added to playback controls to restart race instantly
  • Enhanced Help Popup (H): Reorganized with sections (Playback, Display, Driver Analysis, Advanced)
  • Added footer tip about Shift+Click for driver selection
  • All panels positioned to avoid obstructing the main view

Usage

  1. Select 1-4 drivers using Shift+Click on the leaderboard
  2. Press the corresponding key to toggle each feature
  3. Click on the Incidents Timeline to jump to specific moments

Screenshots

(Screenshots can be added to show the new features in action)

Testing

  • Tested manually with race replay
  • All features toggle correctly
  • No performance issues observed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/214 **Author:** [@Mart89-GH](https://github.com/Mart89-GH) **Created:** 2/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feature/driver-analysis-advanced-race-features` --- ### 📝 Commits (1) - [`d7209e0`](https://github.com/IAmTomShaw/f1-race-replay/commit/d7209e07c76cc9aed5b292aa965cd8a59092c490) feat: Add driver analysis and advanced race features ### 📊 Changes **2 files changed** (+1404 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `src/interfaces/race_replay.py` (+61 -1) 📝 `src/ui_components.py` (+1343 -24) </details> ### 📄 Description ## Summary This PR adds comprehensive driver analysis tools and advanced race visualization features. ## New Features ### Driver Analysis (requires selecting 2 drivers with Shift+Click) - **Driver Comparator (C)**: Side-by-side telemetry comparison showing speed, gear, DRS, throttle/brake bars, and speed history graph - **Delta Display (G)**: Real-time time delta between drivers with trend indicators and history graph - **Performance Radar (P)**: Radar chart visualizing driver metrics (Top Speed, Consistency, Tyre Management, Corner Speed, Acceleration) ### Advanced Race Features - **Sector Coloring (S)**: Legend for track sector performance colors (Purple=Session Best, Green=Personal Best, Yellow=Slower) - **Battle Detector (O)**: Automatically detects DRS battles (<1s gap) with flashing alerts and overtake counter - **Lap Time Chart (T)**: Graph showing lap time evolution for selected drivers - **Incidents Timeline (E)**: Interactive timeline with SC, VSC, Red Flags, DNF events - click to jump to event ### UI Improvements - **Reset Button**: Visual button added to playback controls to restart race instantly - **Enhanced Help Popup (H)**: Reorganized with sections (Playback, Display, Driver Analysis, Advanced) - Added footer tip about Shift+Click for driver selection - All panels positioned to avoid obstructing the main view ## Usage 1. Select 1-4 drivers using **Shift+Click** on the leaderboard 2. Press the corresponding key to toggle each feature 3. Click on the Incidents Timeline to jump to specific moments ## Screenshots (Screenshots can be added to show the new features in action) ## Testing - Tested manually with race replay - All features toggle correctly - No performance issues observed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#223
No description provided.