A standby that drops frames does not win a degrading swap #47

Closed
opened 2026-10-29 19:20:28 -04:00 by cmoriarty · 1 comment
Owner

Why

#40 made a stream that drops frames count as degrading, so the channel swaps away from it. But a standby that itself drops frames can still win that swap: its measurement records its counted rate (Measured.short_of_frames()), and the swap rule ignores it. The viewer would swap one stutter for another and lose the cooled link.

What Changes

  • A degrading upstream is not swapped for a standby whose measurement says it is short of frames (under 90% of its declared rate).
  • A failed upstream still recovers onto it, since a stuttering stream beats none.

Done when a channel degrading for want of frames keeps its upstream when its standby measured 25 of 30 fps, and swaps when the standby measured an even rate.

## Why #40 made a stream that drops frames count as degrading, so the channel swaps away from it. But a standby that itself drops frames can still win that swap: its measurement records its counted rate (`Measured.short_of_frames()`), and the swap rule ignores it. The viewer would swap one stutter for another and lose the cooled link. ## What Changes - A degrading upstream is not swapped for a standby whose measurement says it is short of frames (under 90% of its declared rate). - A failed upstream still recovers onto it, since a stuttering stream beats none. **Done when** a channel degrading for want of frames keeps its upstream when its standby measured 25 of 30 fps, and swaps when the standby measured an even rate.
Author
Owner

Closing: deployed 2026-10-29 (4d8f5ce). A degrading swap skips a standby whose measurement is short of frames, and a failed upstream still recovers onto it. Not seen live yet.

Closing: deployed 2026-10-29 (4d8f5ce). A degrading swap skips a standby whose measurement is short of frames, and a failed upstream still recovers onto it. Not seen live yet.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker#47
No description provided.