GamingCoookie / dv-multiplayer-continued

A multiplayer modification for the game Derail Valley
Other
14 stars 5 forks source link

Don't sync all cars in the train during every car's update #8

Closed saltlands closed 2 years ago

saltlands commented 2 years ago

This had an n^2 bug where every moving car would sync the entire train it was part of. Now it only does that for the first car in the train (whatever car that happens to be)

saltlands commented 2 years ago

See NetworkTrainManager.cs line 1661 for the "sync the entire train" logic