mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 08:25:56 +02:00
[PR #131] fix(data): Eliminate Telemetry Lag via Timestamp Deduplication #162
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#162
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/131
Author: @shash-hq
Created: 12/27/2025
Status: 🔄 Open
Base:
main← Head:fix/telemetry-sync📝 Commits (1)
7e74d49Fix: Add timestamp deduplication to prevent telemetry lag at lap boundaries📊 Changes
1 file changed (+23 additions, -0 deletions)
View changed files
📝
src/f1_data.py(+23 -0)📄 Description
Analysis of Issue
A "lag" phenomenon was observed at lap boundaries where the visual position of the vehicle and the
LapCounterwere desynchronized. Debuggingsrc/f1_data.pyindicated that FastF1 telemetry often contains duplicate timestamps at the exact moment of a lap transition—one associated withLap Nand the subsequent withLap N+1. The existing pipeline processed these sequentially without filtering, causing a temporary reversion to the old state or stuttering.Implementation Details
src/f1_data.py):t_all,x_all,y_all, etc., arrays.np.uniquefilter on confirmed timestamps, configured to retain the last occurrence (latest index).T, the data associated with the higherLapNumberis prioritized.Verification
LapCounterupdates upon crossing the finish line.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.