News for hackers. Stuff that matters.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by chao- on Friday August 30, 2019 @02:10PM (#20841023)
I have the opposite experience with YouTube.

With an AMD GPU on Linux, Chrome churns, drops frames, and stutters horribly on even 1080p videos at 30fps. Firefox, meanwhile, handles 1440p60 video with no problem. Even two such videos simultaneously, on separate monitors.

Chrome became inexplicably better for parts of early 2019 (I did not note which versions), but starting 2 or 3 months ago Chrome returned to being unusable for YouTube beyond 720p videos.

Before anyone asks, this is on an AMD RX 580 with Mesa 18.0.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by usepgp on Friday August 30, 2019 @03:17PM (#20841679)
Hey, I'm on the chromium videostack team, would you mind filing a bug report for what you see happening with youtube? https://bugs.chromium.org/p/chromium/issues/entry
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by nwallin on Friday August 30, 2019 @08:52PM (#20843986)
Fixing this would be like eight steps forward: https://bugs.chromium.org/p/chromium/issues/detail?id=137247

The annoying part is that hardware acceleration works on chrome OS, so we know the support is buried in there somewhere.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by mehhh on Saturday August 31, 2019 @06:36AM (#20845555)
Google closed that as Won't Fix, they are very opinionated and steadfast in their opinion as an organization.

I doubt they will take Linux outside their own walled gardens seruously, Google has already shown their indifference to us Linux users.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by Dylan16807 on Saturday August 31, 2019 @08:59AM (#20846026)
They opened it as Won't Fix, which appears to be their way of saying that they'll accept work but it has a priority of less than zero.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by aliveupstairs on Friday August 30, 2019 @03:37PM (#20841849)
Well, if you're willing to investigate, using ungoogled chromium resulted in tremendous gains while using youtube to the point where I can speed up a video to 2x without the fan ever running amok against my ears.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by chao- on Friday August 30, 2019 @05:24PM (#20842856)
I will take a look this weekend and if I can properly explain and document the issue in detail, I will definitely give you everything I can.

I should add that for an identical Linux distro-and-version, and identical browser versions, my laptop (I forget the SKU, but Intel Broadwell U-series GPU) is about equal in performance between Chrome and Firefox. That is to say, 1440p60 runs smooth on each, so they're good enough that there's no issue from which to discern a difference (which is damned impressive for a 4-year old mobile chip, imo).

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by jhgjklj on Saturday August 31, 2019 @02:33PM (#20848022)
Asking to do the work of raising a bug to make a product better which is competing with other non profit product is in itself a bit arrogant in my opinion. On top of that the attitude to be lazy to search for the issue which was already marked as won't fix https://bugs.chromium.org/p/chromium/issues/detail?id=137247 is not the right thing to do. I would have appreciated if you have created the issue with the details provided and shared the link her for the op to fill in more details.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by IronWolve on Friday August 30, 2019 @04:24PM (#20842336)
When chrome slows down for me, it normally means I need to run clear browsing history, delete cookies, cache, logins, etc. I have modern hardware, on both linux/windows same issue.

But using res on reddit and click "show images" you can tell chrome isn't as fast as other browsers, firefox/brave are visually faster/smoother in scrolling with pics. Hell, even firefox focus is faster on android. But I like chrome addons and sync with my mobile, its my daily driver. Normally I never notice, but a quick clean if starts acting out fixes it for me.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by jeena on Friday August 30, 2019 @04:57PM (#20842654)
Sync with my mobile and all the other devices (4 other computers) is one reason why I use Firefox. It's because it's the only browser, as far as I know, which lets me run my own sync server and offers a open source implementation of it.

https://jeena.net/firefox-sync-15

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by simcop2387 on Friday August 30, 2019 @05:21PM (#20842838)
Oh neat, when they first switched to sync that wasn't the case (the previous system did allow it over WebDAV and such), but because sync wasn't just a data dump with WebDAV it wasn't possible at launch to run your own server. I'll have to look into that again.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by giancarlostoro on Friday August 30, 2019 @05:44PM (#20843001)
As far back as I remember the code behind sync was on GitHub and I do mean the backend. It probably still is. But I let Mozilla host it cause they encrypt it. If I lose my password I lose my synched items.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by simcop2387 on Friday August 30, 2019 @07:52PM (#20843769)
It was there I think, but wasn't immediately possible to use a different server as they hadn't enabled or built that into the browser yet. They were still working out issues and I never bothered to check up on it because it seemed like the encryption was secure enough for me.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by mechapicard on Friday August 30, 2019 @06:51PM (#20843460)
Nothing stressed me out more than the time I genuinely forgot my FF password for a few days!
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by rocqua on Saturday August 31, 2019 @03:02AM (#20845002)
If it's for a few days, how did you un-forget?
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by Yoric on Friday August 30, 2019 @05:00PM (#20842679)
Hey, I remember the time when Chrome was soooo fast and we needed to clean up all the stuff to get Firefox to run adequately :)
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by gameswithgo on Friday August 30, 2019 @02:26PM (#20841151)
have you double checked whether firefox is set to use your gpu or not, for video?
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by vetinari on Friday August 30, 2019 @04:17PM (#20842252)
Neither Firefox nor Chrome under Linux are capable of using GPU for video decoding.

Only some distribution-specific Chromium builds do.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by Yoric on Friday August 30, 2019 @05:01PM (#20842688)
I seem to remember that some GPU acceleration under Linux was disabled voluntarily, on both Firefox and Chrome, because they actually ran much slower than CPU, probably due to bad drivers.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by vetinari on Saturday August 31, 2019 @04:55AM (#20845276)
It is slower not due to drivers, but due to how the browsers[1] compose the final webpage. It does that using CPU, not GPU as on other operating systems, so hardware video decoding would involve moving the compressed video to GPU, waiting for it to decode, moving the decoded video back to RAM, do the composition, and then move the result back to GPU for display.

For hw decoding to have sense, GPU composition is needed. Hopefully webrender will bring that in for Linux too.

[1] Firefox actually, Chrome does use GPU composition. Chrome for ChromeOS even uses the same driver (libva+intel-vaapi-driver) as desktop linux for video decoding, Google just is not willing to support it on desktop. That's what some distributions enable in their Chromium builds.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by floatboth on Sunday September 01, 2019 @10:43AM (#20852530)
GPU layer composition was available in Firefox for ages, long before WebRender. It just was not enabled on Linux by default due to fear of bad drivers. But anyone who heard about it or asked about performance on various forums knows about layers.force-enable in about:config.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by ubercow13 on Saturday August 31, 2019 @04:14AM (#20845183)
That’s certain GPU acceleration of rendering - specifically for Firefox I think compositing is disabled by default. It’s not the same as GPU accelerated video decoding which isn’t implemented in either browser, except via a set of patches for Chromium.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by lima on Friday August 30, 2019 @04:29PM (#20842396)
Check about:gpu - sounds like hardware acceleration isn't working.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by chao- on Friday August 30, 2019 @05:29PM (#20842896)
It seems intentionally disabled. The about:gpu page reports the following:

>Accelerated video decode is unavailable on Linux: [137247](https://bugs.chromium.org/p/chromium/issues/detail?id=137247)

>Disabled Features: accelerated_video_decode

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by lima on Wednesday September 04, 2019 @12:21PM (#20878683)
Just video or everything?
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by mechapicard on Friday August 30, 2019 @06:48PM (#20843437)
At least on MacOS firefox plays nice with Gsuite. Youtube can be hit or miss at high framerates every now and then.