Closed ludolpif closed 1 year ago
We appreciate your report. This is a known issue and it is currently under investigation by our team. Please refer to : https://bugzilla.mozilla.org/show_bug.cgi?id=1679677 and https://github.com/webcompat/web-bugs/issues/67712 for future updates and workaround. Closing this as a Duplicate.
[qa_52/2022]
URL: https://www.twitch.tv/videos/1688488583
Browser / Version: Firefox 110.0 Operating System: Linux Tested Another Browser: Yes Other
Problem type: Something else Description: high CPU, dropped frames, depends on tchat activity Steps to Reproduce: My user experience : Twitch streams in Firefox with many dropped frames, especially with chat with more than 1 message per second. Animated emoticons seems unrelated. I think it's because tchat refreshing cause main event loop freeze and triggers media player behavior changes.
In chromium it's smoother. In VLC is pure 60fps. I may have found something interesting with VLC by accident : firefox in tchat mode only eat lots more CPU than the full media decoding in VLC.
My environnement : on Debian 11.6 on a Dell 5490 laptop.
Below some perf captures :
First basic capture a non subscriber-only VOD on twitch with Firefox ESR 102 with everything I can set to default :
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=bwe0wa&hiddenGlobalTracks=1w9&hiddenLocalTracksByPid=4035-13wb~4294-0~4290-0&implementation=js&thread=n&v=8 URL of the VOD : https://www.twitch.tv/videos/1688488583 While capturing, I did not played a peak time in this VOD (there is many emoticons only messages during karaoke).
Then, tchat-only capture with low message activity without any other user application opened, (no video at all), CPU is high, I activated JS Memory tracing because I think there is a leak with tchat as experienced by myselft with a 1M viewer stream during a few hours : I have to restart Firefox once an hour to not fillup my 16GB RAM (doing nothing else on this computer)
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=9wb0w8&hiddenGlobalTracks=2w7&hiddenLocalTracksByPid=5255-13wa&implementation=js&range=129972m2553~130674m130&thread=j&v=8
URL of tchat tried
Re-do the same with Firefox Nightly, new profile (so I not logged in on Twitch this time), problems occurs too IHMO Got Memory info bonuses
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=g0wf&hiddenGlobalTracks=24we&hiddenLocalTracksByPid=8077-04w6~8976-0~9557-0w2~9560-0~9483-01~9629-0~9675-0~9631-0~9415-0~9411-0~8661-0~8683-0~8760-0w2&range=114562m282474~232396m3058~233555m690&thread=o&v=8
My linux show up "system" and "user" time for firefox, in unusual proportions when it is eating my CPU : > 1/3 is for system.
Similar but... I don't know : https://bugzilla.mozilla.org/show_bug.cgi?id=1679677 https://webcompat.com/issues/67712
View the screenshot
Browser Configuration
From webcompat.com with ❤️