Long trains are unusually laggy

I’ve noticed that, in my game, longer trains seem to cause lag. It’s weird, though, since the lag seems to vanish if the engine driver gets out of the engine.

I assume that this is because of the couplers. When two couplers touch, they connect. You can click them both to then decouple. I think that the problem is that the couplers are constantly attaching, therefore repeatedly creating RopeConstraints? I’ve checked the two scripts that control couplers, and there are no debounce functions.

Please excuse the poor video quality.

1 Like