TWCC tweaks (#3282)
* SSBWE experimentation * dqr hysteresis * fixes * fmt * more relaxed DQR * pps proportional to duration * clean up * clean up * don't need gratuitous up allocation
This commit is contained in:
@@ -727,17 +727,6 @@ func (s *StreamAllocator) handleSignalPeriodicPing(Event) {
|
||||
}
|
||||
}
|
||||
|
||||
// try up allocations in case there is available headroom,
|
||||
// it is possible that a previous up allocation is waiting to settle,
|
||||
// so even if there was headroom available while doing previous up allocation
|
||||
// it may not have used up all available headroom,
|
||||
// check before probing again as this could use available headroom and
|
||||
// up allocate all tracks to their desired layers, that would avoid
|
||||
// an unnecessary probe cluster
|
||||
if s.state == streamAllocatorStateDeficient {
|
||||
s.maybeBoostDeficientTracks()
|
||||
}
|
||||
|
||||
// probe if necessary and timing is right
|
||||
if s.state == streamAllocatorStateDeficient {
|
||||
s.maybeProbe()
|
||||
@@ -1439,11 +1428,11 @@ func updateStreamStateChange(track *Track, allocation sfu.VideoAllocation, updat
|
||||
}
|
||||
|
||||
func isHoldableCongestionState(bweCongestionState bwe.CongestionState) bool {
|
||||
return bweCongestionState == bwe.CongestionStateEarlyWarning || bweCongestionState == bwe.CongestionStateEarlyWarningHangover
|
||||
return bweCongestionState == bwe.CongestionStateEarlyWarning
|
||||
}
|
||||
|
||||
func isDeficientCongestionState(bweCongestionState bwe.CongestionState) bool {
|
||||
return bweCongestionState == bwe.CongestionStateCongested || bweCongestionState == bwe.CongestionStateCongestedHangover
|
||||
return bweCongestionState == bwe.CongestionStateCongested
|
||||
}
|
||||
|
||||
// ------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user