Repository navigation
Conversation
|
Thanks @Joilence! Capping wait time by output duration is a nicer way to set this up than a fixed
One design question before mergingRight now The README states the override, so it's documented, and your second test pins it on purpose. I'd still suggest reconsidering, for two reasons:
The alternative is one change per gap: keep the existing rule, then speed up only when the output would still exceed the cap. useSpeed = Math.max(useSpeed, gapMs / maxGapMs);That way the cap only ever shortens a gap, the If there's a case where you want the cap to replace a faster speed, I'm happy to hear it. I may be missing the scenario that led you to pin that behavior. Minor, not blockingAn invalid Thanks again! |
What
speedRamp.maxGapMsto cap each gap's output duration, including leading and trailing gaps.speedRamp: { gapSpeed: 1, maxGapMs: 2000 }, a 60-second gap becomes 2 seconds; shorter gaps stay at normal speed.Test