Bug Incorrect lap distance calculation

Discussion in 'Community Support' started by Maarten, Mar 27, 2021.

  1. Maarten

    Maarten Member

    Joined:
    Apr 15, 2019
    Ratings:
    +23 / 0 / -0
    Hi, I've found a problem in how Raceroom calculates the lap distance. In some parts, the lap distance goes back even though the car is moving forward. Also the lap distance is not calculated constantly, resulting in coarse graphs.

    Here you see the lap distance going back it in the graph:
    bugged-text.png

    This is what I get when I recalculate the lap distance with my own algorithm. The result is smooth and does not go back in distance.
    de-bugged-text.png

    Combined image, the dark color is the original data, the bright is the recalculated: combined.png


    This is a visual representation of how I calculate the lap distance.
     
    • Useful Useful x 1
    Last edited: Mar 27, 2021
  2. Alex Hodgkinson

    Alex Hodgkinson KW Studios Developer

    Joined:
    Jun 5, 2017
    Ratings:
    +1,948 / 0 / -0
    Reported, thank you
     
    • Like Like x 1
  3. ravey1981

    ravey1981 Well-Known Member Beta tester

    Joined:
    Apr 15, 2018
    Ratings:
    +873 / 0 / -0
    which telemetry viewer are you using here btw?
     
  4. Maarten

    Maarten Member

    Joined:
    Apr 15, 2019
    Ratings:
    +23 / 0 / -0
    It's a creation of my own.
     
    • Like Like x 1
    • Wonderful Wonderful x 1
  5. OtterNas3

    OtterNas3 Well-Known Member

    Joined:
    Jan 9, 2018
    Ratings:
    +315 / 0 / -0

    This was on Zhejiang GP
    Found these small back-and-forth hickups in the lapdistance on almost every track now.
    Here it is a small margin, but sometimes the difference is hundreds of meters.
     
  6. OtterNas3

    OtterNas3 Well-Known Member

    Joined:
    Jan 9, 2018
    Ratings:
    +315 / 0 / -0
    Probably the worst was Nordschleife, when in Combination of the GP Track - VLN/24H

    Made a post about it on the Discord already, but seems it slipped the Radar
    Some Drivers in Multiplayer, when they leave the GP track to enter the Nordschleife, get really weirdo LapDistances
    And they tend to be stuck until they cross the Finish line again. Then it sometimes sort itself out for the next lap and starts again acting weird on a random lap.
    [​IMG]
     
  7. Maarten

    Maarten Member

    Joined:
    Apr 15, 2019
    Ratings:
    +23 / 0 / -0
    Hehe, that's funny. I've had the same issue with my code. The algorithm couldn't get back to the right way point in some cases depending on layout. I've build in a workaround so that doesn't happen.

    I think the vln issue is that it jumps onto the wrong way point.
     
  8. Maarten

    Maarten Member

    Joined:
    Apr 15, 2019
    Ratings:
    +23 / 0 / -0
    lap-dist-bug.png

    Bug is still there after the last update. This was at Motegi East Course, T1, Apex

    Update details:
    Client version = 0.9.2.38
    Client BuildID = 6680013
    Dedicated version = 74.0.1295
    Dedicated BuildID = 6680156
     
    • Useful Useful x 1