Is the livetiming client slower than the livetiming dashboard on race day? #630
Replies: 1 comment 5 replies
-
Hi, this is most likely some kind of processing overhead. Either in the live timing client itself or in the code that you have patched in.
That is most likely not the case, I'm pretty sure about that. There shouldn't be an intentional artificial delay here.
You can try starting it closer to the start of the race. This suggestion is just from personal experience and to ensure a complete recording including track and session status messages that may come slightly before the start of the session. |
Beta Was this translation helpful? Give feedback.
-
This may or may not be specific to FastF1's implementation of the livetiming client. But I have written a small script to change my room's light colors based on which driver is leading the race during a GP.
I've monkey-patched the code to process the live events as they're received from the SignalR websocket rather than write them to a file. I'm using this mechanism to process in real time (or at least attempt to) every
DriverList
event that comes and based on whether it contains "Line 1" info, I change my room lights via an API of their own.The problem is, this works well during Qualifying, as I'm able to receive position change events with same speed as I see it change on livetiming dashboard (
formula1.com/en/timing/f1-live
).However, on race day, I am curious why the
DriverList
events are so slow. I haven't subscribed to any other events exceptHeartbeat
andDriverList
so cannot speak for other events but theDriverList
is for sure very very delayed on Sundays to the point that it's well behind the video livestream too. And when I have the livetiming dashboard open, I see it updates well ahead of when I receive the message on my script.Another thing that has happened is that while FastF1 recommends starting livetiming client at least 5mins before the event, I've had my script crash (due to timeouts as my machine accidentally goes to sleep) and I've had to restart the script. I'm curious if that interruption is also to be blamed but not sure how exactly that would work.
Another possible cause I'm suspecting may be that livetiming dashboard uses some kind of authenticated websocket which has a faster datastream compared to the unauthenticated datastream FastF1 uses, however I've not been able to confirm this suspicion.
Beta Was this translation helpful? Give feedback.
All reactions