s-victor / TinyPedal

Free and Open Source telemetry overlay application for racing simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect fuel calculation in case of race end with delay on the first lap or more

mrlissandrello opened this issue · comments

calculation of remaining fuel is not correct in case of delay on the first position of one lap or more if the race does not end in time

commented

hi, that is not really an issue. Calculation is always based on your estimated on track position (that extends to end of lap) before timer end.

As for leader's "on track position" before timer end, there is a plan to implement a widget to estimate finishing position for both local player and leader, so you can determine whether there will be an extra lap after timer ends (there is no estimation when it will be done). However the accuracy of such estimation can only be as close as it can get in the last stint, and there will be a lot variable affecting it. So in the end, it still up to user to determine whether leader will do an extra lap after race timer ended. Note, you can always simulate how many laps would be done with specific laptime(from leader) in Fuel Calculator before race.

commented

To give a further example:

If your estimated average laptime is 1:38.500, then there will be 11 total estimated laps.

However if leader is doing an average of 1:38.000 (just half seconds faster), then there will be 12 total estimated laps as leader would start lap 12 just a few seconds before timer ends.

So in order to determine whether there would be an extra lap, it requires to estimate leader's on track position at the moment when race timer ended. There will various variable affecting accuracy of this estimation, including: leader's average laptime, leader's remaining number of pit stops, leader's fuel saving strategy, etc. So this estimation can only be as close as in the last stint.

The plan is to implement a widget to show leader's on track position (in percentage) compare to player's position when race timer ended, so you can determine whether to carry an extra lap of fuel.

fuel_est

I'm not talking about the time of the first lap.

I'm talking about the calculation of fuel left to finish the race in cases similar to the following:

20 drivers in the race and a 50-lap race.
The driver in 20th position was overlapped by the first one 2 times.
When the driver in first position finishes the 50th lap, for the driver in 20th position the last lap will be the 48th and not the 50th.
Currently TinyPedal calculates the remaining laps in the tank for the driver in 20th position as being 50. Instead, the laps to be calculated are 48.

commented

ok, I probably misread your question, it seems you were taking about "lap-based" race instead of "time-based"?

If that is the case, then yes, tinypedal currently only calculates total laps and fuel from local player in both time-based & lap-based race types. If leader is faster and finishes total laps sooner in lap-based race, there will be less laps done for slower cars.

As I mentioned earlier that I plan to add widget to calculate and show leader finishing position, which may also be used to show estimated laps and total time that leader will do, so it may help you determine whether you will need to carry less fuel (in your case, 2 laps of less fuel).

Note, there will still be a lot variables that will affect the estimation outcome. For example, it's not possible to determine exactly how many laps leader would overlap slower cars. As you know, multi-class traffic is a complex thing, and there are also leader's laptime consistency, pit-stops time, pit penalty stuff, so even if this widget is created, it will still be your decision whether to carry less fuel (which is risky) or not. And for this reason, this estimation also cannot be included in Fuel Widget, but only in a separate widget and used as reference.

commented

The mentioned feature is now implemented and released in v2.16.0 update. See forum post for full guide. Good luck.

thanks, as soon as i get back from holiday i will try it. btw how can i contribute financially to your business?

commented

no need, but thanks.