Re: Firefox playing videos takes too much CPU

2020-08-07 Thread Jan Beich
"Mikhail T."  writes:

> Hello! I noticed recently, how much CPU playing a video takes... A
> firefox-process, playing a modest 1080p clip (such as this 
> ) for example, will show
> in top as taking between 150-160% CPU (and mine are E5-1620 0 @
> 3.60GHz), with Xorg taking /another/ 30%. If I pause the video,
> CPU-usage drops down to single-digits, so it definitely is the
> playback...

Try profiling e.g., "pmcstat -t firefox -P instructions -T".

> If I download that same video (using youtube-dl), and give it to
> mplayer, the playback will only cost about 60% CPU for the mplayer 
> itself -- plus 20% for the Xorg. Mplayer using the simple "x11"
> video-output, nothing particularly fancy. The video card is an old 
> Radeon (5670/5690/5730).
>
> Is there a good explanation for this discrepancy? Thank you! Yours,

Maybe https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203732
___
freebsd-gecko@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "freebsd-gecko-unsubscr...@freebsd.org"


Firefox playing videos takes too much CPU

2020-08-06 Thread Mikhail T.
Hello! I noticed recently, how much CPU playing a video takes... A 
firefox-process, playing a modest 1080p clip (such as this 
) for example, will show in 
top as taking between 150-160% CPU (and mine are E5-1620 0 @ 3.60GHz), 
with Xorg taking /another/ 30%. If I pause the video, CPU-usage drops 
down to single-digits, so it definitely is the playback...


If I download that same video (using youtube-dl), and give it to 
mplayer, the playback will only cost about 60% CPU for the mplayer 
itself -- plus 20% for the Xorg. Mplayer using the simple "x11" 
video-output, nothing particularly fancy. The video card is an old 
Radeon (5670/5690/5730).


Is there a good explanation for this discrepancy? Thank you! Yours,

   -mi

___
freebsd-gecko@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "freebsd-gecko-unsubscr...@freebsd.org"