High memory and CPU usage during video playback on Twitch with webrender software fallback
Categories
(Core :: Graphics: WebRender, defect, P3)
Tracking
()
People
(Reporter: impossibus, Assigned: lsalzman)
References
(Blocks 1 open bug)
Details
(Keywords: perf-alert)
Attachments
(1 file)
Perhaps this is expected with webrender.software=true? My laptop fans go wild as soon as I start playing a video on Twitch. I do not get the same fan noise when I watch a long YouTube video, say.
I recorded two performance profiles under pretty much the same conditions (fresh profile, the Nightly versions are different but close together). In both cases, the steps during the recording are:
- Navigate to Twitch page - video autoplays
- Let it play for a while
- Navigate to firefox.com
Comment 1•4 years ago
|
||
It looks like you didn't publish the profiles. Can you gather some new ones and publish them?
Reporter | ||
Comment 2•4 years ago
|
||
D'oh! Sorry.
Now I get "Error publishing" on profiler.firefox.com. Maybe it's too big? I'll try again on Monday.
Reporter | ||
Comment 3•4 years ago
|
||
Comment 4•4 years ago
|
||
It looks like those profiles were taken with screenshots turned on. Can you redo them with "Firefox Graphics" preset?
Reporter | ||
Comment 5•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•3 years ago
|
Reporter | ||
Comment 7•3 years ago
|
||
I think 3840 x 2160 but I don't have access to the system in question anymore.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 8•3 years ago
|
||
It looks like perhaps the most actionable thing here is the time spent in cs_clip_box_shadow. Most everything else is hitting fast-paths.
Updated•3 years ago
|
Assignee | ||
Comment 9•3 years ago
|
||
This adds a span shader that tries to treat the box shadow as a nine-patch
and intersect with the various sectors of it. This allows committing entire
contiguous spans of texture from the source box shadow rather than doing
slower per-fragment processing.
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec2f0492da8a Implement SWGL fast-path for box shadows. r=jrmuizel
Comment 11•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 12•3 years ago
|
||
== Change summary for alert #30123 (as of Wed, 19 May 2021 03:25:26 GMT) ==
Improvements:
Ratio | Suite | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|---|
2% | tresize (docs) | linux1804-64-shippable-qr | e10s stylo webrender-sw | 20.62 -> 20.14 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=30123
Updated•3 years ago
|
Description
•