Open
Bug 1461266
Opened 6 years ago
Updated 2 years ago
comments framerate is smoother on Chrome than Firefox
Categories
(Core :: Graphics: Canvas2D, defect, P3)
Tracking
()
NEW
People
(Reporter: karlcow, Unassigned)
References
()
Details
(Whiteboard: [webcompat])
With Firefox Nightly 62.0a1 (2018-05-13) (64-bit) and Chrome Canary Version 68.0.3429.0 (Build officiel) canary (64 bits) 1. Open http://www.nicovideo.jp/watch/sm31927805 2. Advance Firefox to 5s. 3. Start the video on Chrome Canary 4. When it reaches 5s, start the video on Firefox. (so both videos are mostly synchronized) Actual: Comments passing on the screen on Firefox is janky. Very smooth on Chrome.
Comment 1•6 years ago
|
||
Can confirm... This is a 24fps video. On Firefox it's very janky, particularly noticeable on the scrolling text. The judder on the text is pretty bad. My guess is that this bug should be lodged under the graphics components as the media stack gives all the frames to be displayed to the compositor, and it's up to the compositor to render them properly. Matt, any suggestions?
Component: Audio/Video → Audio/Video: Playback
Flags: needinfo?(matt.woodrow)
Comment 2•6 years ago
|
||
Looks like the comments are drawn using a <canvas>. We're definitely pushing 60fps (easily), so maybe we're snapping text to pixels and making it look jumpy? I had a quick look in a debugger and it looked like we were trying to support subpixel positioning at least.
Component: Audio/Video: Playback → Canvas: 2D
Flags: needinfo?(matt.woodrow) → needinfo?(lsalzman)
Comment 3•6 years ago
|
||
It's definitely not text, as the way this is scrolling the text is by first rendering them into images, and then just drawing those image to the canvas repeatedly, which seems to be where it is getting bottlenecked.
Flags: needinfo?(lsalzman)
Comment 4•5 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Webcompat Priority: --- → ?
Comment 5•5 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•4 years ago
|
Webcompat Priority: ? → ---
reason of this bug is, in Firefox, HTMLMediaElement.currentTime update rates are near 25fps in Firefox. but in Chrome and Safari, it will updates constantly (>60fps).
currently www.nicovideo.jp including workaround for this and can't reproduce bug now, but embed.nicovideo.jp not using workaround, so you can still see old behaviour in embed.nicovideo.jp.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•