File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ impl BitrateEstimate {
357357 } ;
358358
359359 let controller = BitrateController :: new ( config) ;
360- let window_size = 30 ;
360+ let window_size = 35 ;
361361
362362 Self {
363363 last_update : now,
@@ -376,7 +376,7 @@ impl BitrateEstimate {
376376 pub fn poll ( & mut self , now : Instant ) {
377377 let elapsed = now. saturating_duration_since ( self . last_update ) ;
378378
379- if elapsed < Duration :: from_millis ( 100 ) {
379+ if elapsed < Duration :: from_millis ( 200 ) {
380380 return ;
381381 }
382382
@@ -398,8 +398,7 @@ impl BitrateEstimate {
398398 let robust_bps = if self . scratch . is_empty ( ) {
399399 raw_bps
400400 } else {
401- // P80
402- let target_idx = ( self . scratch . len ( ) as f64 * 0.8 ) as usize ;
401+ let target_idx = ( self . scratch . len ( ) as f64 * 0.5 ) as usize ;
403402 let target_idx = target_idx. min ( self . scratch . len ( ) . saturating_sub ( 1 ) ) ;
404403 let ( _, & mut val, _) = self
405404 . scratch
You can’t perform that action at this time.
0 commit comments