• Welcome to PiBoSo Official Forum. Please login or sign up.
 

Discrepancy Between _fTime and m_iLapTime

Started by gaga_dreher, October 14, 2024, 07:39:11 AM

Previous topic - Next topic

gaga_dreher

I'm trying to understand if it's correct to say that _fTime isn't always the same as m_iLapTime. My understanding is that _fTime represents the cumulative time on the track, and since m_fTrackPos resets at the start of each new lap, it seems logical that _fTime should match m_iLapTime at the beginning and end of a lap. However, this doesn't always appear to be the case.

Could this issue be related to what @HornetMaX was investigating in these threads?

https://forum.piboso.com/index.php?topic=969.msg10686#msg10686
https://forum.piboso.com/index.php?topic=1769.msg61386#msg61386

I'm looking for a function similar to RunTelemetry() that can be called live, ideally at a rate like 10 Hz, to accurately reflect the lap time displayed in the game at the end of each lap. Does such a function exist, or is there a way to implement this?