joshjaysalazar / iRacingSafetyCarGenerator

Software to generate custom safety cars during an iRacing race
GNU General Public License v3.0
4 stars 2 forks source link

Lag spikes can cause safety cars #23

Closed joshjaysalazar closed 2 months ago

joshjaysalazar commented 3 months ago

Describe the bug With a big enough lag spike, a safety car can be thrown for cars stopped on track.

To Reproduce Steps to reproduce the behavior:

  1. Run the generator and get a lag spike big enough to make other cars momentarily disappear
  2. Watch the safety car be thrown for no reason

Expected behavior An exception for stopped car detection should be added for cars that are not seen as connected.

Screenshots N/A

Additional context N/A

joshjaysalazar commented 3 months ago

Strangely, there's already an exception for cars which are shown as not in world. So it must think the cars are still there even though they disappear during a lag spike.