Bug 211852 - Media Source Extensions + WebGL video texture degraded playback performance
Summary: Media Source Extensions + WebGL video texture degraded playback performance
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 13
Hardware: All All
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: webgl2media
  Show dependency treegraph
 
Reported: 2020-05-13 11:14 PDT by Dustin Kerstein
Modified: 2021-03-30 03:55 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Kerstein 2020-05-13 11:14:32 PDT
It appears that the issue noted in https://bugs.webkit.org/show_bug.cgi?id=211750 is significantly worse when using Media Source Extensions for video playback. Here are two near-identical demos:

   JSFiddle with MSE - https://jsfiddle.net/yj9vpfkr
   JSFiddle with blob as video source - https://jsfiddle.net/knL126st

*Note* that as these JSFiddles use iFrames, you'll need to click into the result iFrame to get Safari to avoid using its low power mode (meant for ads) which limits rendering to 30fps.

Test results - JSFiddle with MSE:

   2011 Macbook Pro - Playback starts to freeze at playbackRate = 0.02 and also causes the render loop to stop running (and the whole tab freezes)
   First generation iPad Pro - Playback starts to freeze at playbackRate = 0.10

Test results - JSFiddle with blob as video source:

   2011 Macbook Pro - Playback starts to freeze at playbackRate = 0.80
   First generation iPad Pro - Playback starts to freeze at playbackRate = 2.00

Note that with blob as video source you'll eventually run into https://bugs.webkit.org/show_bug.cgi?id=211750, but regardless, the maximum playbackRate with MSE is significantly worse.

Also note that these JSFiddles are specifically using Long GOP test video files to avoid this XPC messages issue - https://bugs.webkit.org/show_bug.cgi?id=211295
Comment 1 Radar WebKit Bug Importer 2020-05-13 16:25:17 PDT
<rdar://problem/63205446>