Closed Bug 1837486 Opened 2 years ago Closed 2 years ago

poor performance and high cpu usage when playing video in web.telegram.org

Categories

(Core :: Graphics: WebRender, defect)

Firefox 114
x86_64
Windows 10
defect

Tracking

()

RESOLVED DUPLICATE of bug 1789996
Performance Impact low

People

(Reporter: a.rainman, Unassigned)

References

Details

(Keywords: perf:resource-use)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0

Steps to reproduce:

I try to play video (any video) on web.telegram.org and get very high CPU usage.

Actual results:

I get very high CPU usage. This is a profile measurement:
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=a0w9&hiddenGlobalTracks=1w35w7&hiddenLocalTracksByPid=3528-01~8788-0~4212-0~7304-0~6012-0~9708-13~8492-16&implementation=js&thread=7&v=9

And the troubleshooting information from browser is included in the file

Expected results:

Minimal as possible CPU load.

Oh, sorry. I set an incorrect profiler link, the correct is here https://share.firefox.dev/3MUIgUh

Component: Untriaged → Audio/Video: Playback
OS: Unspecified → Windows 10
Product: Firefox → Core
Hardware: Unspecified → x86_64
See Also: → 1837112

This looks like it could be a regression. Please consider using mozregression to find the exact code change which caused this issue.

Performance Impact: --- → ?

Additionally I create a bug in the Web Telegram tracker https://bugs.telegram.org/c/28935

The CPU usage on web.telegram.org does seem higher than on other sites.

The Performance Impact Calculator has determined this bug's performance impact to be low. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: Windows
Configuration: Specific but common
[x] Causes severe resource usage

Performance Impact: ? → low

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jmathies)

The problem is still existed in Firefox version 114.0.2 and Telegram Web A 1.61.32. The issue is existed ONLY when video is loading.

Took a look at this and can repro on Linux, with profiling showing heavy CPU usage in WebRender texture upload/updates similar to 1789996. Marking as duplicate and moving over to the WebRender component for now.

Severity: -- → S3
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Component: Audio/Video: Playback → Graphics: WebRender
Duplicate of bug: 1789996
Flags: needinfo?(jmathies)
Resolution: --- → DUPLICATE

Thank you so much! Yes, it's really like an additional WebRender performance problem.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: