r/firefox•
d3fin3d

Possible solution to choppy 1080p 60 FPS YouTube playback within FireFox 56/57

Solved

Ever since my (relatively old) projector PC automatically updated to FireFox 57 a few days ago, I've honestly been blown away. The speed and responsiveness has been amazing and I feel like FireFox can finally give Chrome a run for its money.

That said, I've been experiencing the infamous choppy/laggy/jerky/unsmooth playback issue with 1080p 60 FPS YouTube videos in FireFox 57. The issue occurs on both the new and old YouTube layout. The issue doesn't occur within either Chrome of Microsoft Edge.

I can only assume that this issue is related to the age of my projector PC's CPU/GPU and the way in which FireFox utilises the GPU for rendering.

Having scoured Reddit and forums, I've nailed down the performance problem to two key about:config settings:

media.gpu-process-decoder

layers.gpu-process.enabled

Turning both of these options to false has seen 1080p 60 FPS playback go from looking like a choppy 20 FPS video to a properly rendered 60 FPS video!

It's worth noting that the setting change that seems to have the most performance impact is media.gpu-process-decoder however also setting layers.gpu-process.enabled to false seems to make 1080p 60FPS playback pretty much perfect.

I figured that, although this has been mentioned in replies within a handful of threads, it might be worth posting this separately for those of us with slower machines/GPU's that significantly notice this issue!

Posted Oct 14, 2017, 1:04 PM UTC

2020
Saltym4nFirefox Beta | Windows 10•

What does these flags do, exactly?

8
Jop902Nightly | Windows 10•

Really interest in this too, anyone from FF team can help us here?

4
caspy7•

^^^cc: ^^^/u/Jop902

This is about doing GPU work in a separate process to improve stability. Working with GPU drivers is one particular area where Mozilla has little control over the code. The drivers can leak memory and crash and Mozilla can't do anything about it but hope to blacklist them when they're alerted to such behavior. (In the case of some leaks this may be unclear.)

Hosting the GPU work in Firefox's code then makes Firefox less stable. Putting it in another process means that if it crashes, it doesn't bring the browser down. Here's a page talking about it.

3
Jop902Nightly | Windows 10•

Are you talking about the first one, second one, both?

And are you talking about having them Enabled or Disabled?

And if you're talking about having them Enabled how can disable them improve performance?

4
caspy7•

I'm not claiming to be an expert in this area, but per the names

media.gpu-process-decoder layers.gpu-process.enabled

These are both related to the gpu process. I believe the first is about doing video decoding in the separate process (preffed to true). There's other GPU work that happens beyond video. And the second is about whether or not the gpu process is enabled at all. Again preffing to true enables.

And if you're talking about having them Enabled how can disable them improve performance?

Because nothing's perfect? It was designed to improve stability while not hurting performance. It seems, at least in the case of OP, that hasn't been the case. At the very least a bug needs filed to look into this.

FYI, per this post that elaborates more on it:

Anyone with Windows 7 Platform Update or later with a graphics card that has not previously been blacklisted, and who have multi-process enabled are supported.

So on 56 not everyone will have it, but on 57 a lot more will (because pretty well everyone should have multiprocess).

5
rSdar•

Pretty sure that it should be a bug already opened as this has been discussed on mozillazine when this feature was added for testing on nightly (late 2016) and was being commented (as a performance issue) ever since from time to time:

ie: http://forums.mozillazine.org/viewtopic.php?p=14755116#p14755116

3
ljdriley•

This sounds like the disable hardware acceleration option only video specific. I imagine you tried disabling hardware acceleration first?

1
d3fin3dOPFirefox Beta•

Yeah, disabling hardware acceleration didn't seem to make any difference for me.

3
ilmbt•

same here

1

You should open a bug with this information and your about:support info to help other users with your chipset.

1
caspy7•

When did you notice this issue with 1080p 60 FPS video start? Just with 56?

1
d3fin3dOPFirefox Beta•

As soon as my Firefox automatically upgraded to 57. I believe I was running maybe 54/55 before the update, and I hadn't noticed the issue.

2
caspy7•

I believe I was running maybe 54/55 before the update, and I hadn't noticed the issue.

Ok, I have filed a bug and am trying to gather any more info. So you don't think you'd actually even used 56? Also, I'm curious how you went from 54 or 55 to 57? What OS are you on? (And if linux, is this a distro build or downloaded directly from Mozilla's website?)

1
d3fin3dOPFirefox Beta•

I'm on Windows 10 and I honestly wasn't keeping track of version numbers on my projector PC.

I just don't remember any 1080p 60FPS stuttering issues and I'm aware 56 and 57 are very similar on the backend, so I assume I may have been running a previous version!

Thanks for filing the bug!

1
caspy7•

Hey. Trying to help Mozilla with this bug*. Would you mind providing more info?

A developer asked a few questions. Would you revert the settings you changed and provide a screenshot of Stats for Nerds on a video from youtube? (Just right click on a video and select that menu item.) Also, go to about:support in the URL bar and click the "copy text to clipboard" button and share that.

1
HyperActivz•

THANK YOU SO MUCH!!!!!!! FINALLY STOPPED LAGGING

1
EShirou•

Sadly... it did nothing for my performance, still choppy as hell, guess I really will have to find alternative browser :/ I noticed videos being choppy back when my i5 machine still worked, now it's dead and I'm back to overlocked dual core cpu based machine with 2gb of ddr2, and the issues is worse than on i5 pc. Thanks for posting this though.

1
floatbothNightly•

Looks like many people have garbage GPUs a.k.a. "video decelerators". tbh Firefox should quietly benchmark the GPU (both compositing and decode) and dynamically decide whether to use it.

-1
caspy7•

should quietly benchmark the GPU and dynamically decide whether to use it.

It does.

On each upgrade as far as I understand.

1
[deleted]•

[removed]

-10
Jop902Nightly | Windows 10•

I hope it's sarcasm.

2
ljdriley•

He's called turd burglar, so probably.

2