austinbaccus / forza-telemetry

Record and Display Telemetry from Forza Motorsport 7, Horizon 4, and Horizon 5.
MIT License
234 stars 36 forks source link

App/UI falls behind live, in-game data #42

Open tpressley opened 3 years ago

tpressley commented 3 years ago

Tested in Forza Horizon 4 and Forza Horizon 5, when playing in-game the app eventually falls behind the live data, and gets further behind over time. Appears to be due to packets being buffered and the data coming in faster than it can be read.

I have a proposed solution, it's kinda "messy" but just disposing the client at the end of each request allows it to reset and remain constantly in sync with live data from the game. PR to be added shortly for review.

austinbaccus commented 1 year ago

I think this was solved by curtailing the map line if it got too long. Basically, in Horizon, the map goes on forever. I changed it to have a max length to prevent performance issues. Hopefully this fixed it for you.