Skip to content
TylerS1066 edited this page Jun 26, 2020 · 2 revisions

Dynamic lag speed is a feature of movecraft that dynamically reduces the speed of crafts depending on their individual impact on server lag. It works by subtracting from the cruiseSpeed of the craft, and does not affect vertCruiseSpeed.

Dynamic lag speed has two adjustable parameters for each craft type, which are used in the following equation to determine craft speed. moveTime is measured in milliseconds, and the resultant speed is in meters per second. cruiseSpeed - dynamicLagSpeedFactor * (moveTime ^ dynamicLagPowerFactor)

dynamicLagPowerFactor allows you to adjust the rate at which crafts are punished for their lag impact. The closer this value approaches 1.0 the more crafts are punished for incrementally taking more time to move. The closer this value approaches 0.0 the less crafts are punished for taking more time to move. This factor is exponential, so it does not follow a linear scale. If you set the power factor to 1 then a craft that takes twice as long to move as another is punished twice as much, if you set this to 0.5 then it is only punished 1.41 times as much.

dynamicLagSpeedFactor adjusts the rate at which crafts are punished for their lag impact linearly. Doubling this will double the punishment for all crafts, and halving it will halve the punishment.

dynamicLagMinSpeed is the minimum speed a craft will be penalized to.

I recommend numbers around 0.25 for the speed factor and 0.875 for the power factor, along with a minSpeed of around 1.