Google Chrome and Firefox have bad HW acceleration performance on 390.25


I’m running Fedora 27 (HP Z600 dual Xeon workstation, GTX 1060 6GB, dual monitor setup), and since upgrading to kernel 4.14.16-300.fc27.x86_64, only the 390.25 driver packaged by RPMFusion installs cleanly. It appears to perform well in general, and games like Shadow Warrior run just fine, but WebGL is slow on both Chrome 64.0.3282.140 and Firefox 58.0.1. Youtube video playback takes several seconds to become stable on Chrome (did not notice similar issue on Firefox). CPU usage does not seem to spike, despite obvious program render slowdown. The video playback issues go away if disabling Chrome hardware acceleration.

Curiously, the WebGL application that’s slow on the browsers runs fast and without issue on nwjs 63.0.3239.132 - I’m wondering, could this have something to do with the Spectre mitigations added into the 390 drivers?
Edit: just tried nwjs 64.0.3282.140, and no slowdown there, either.

These issues did not manifest on the 387.22 drivers - for business reasons, I’m forced to downgrade.

PS: first time poster, please try to go easy on me :)

PS2: tried 390.25 packaged by negativo17; nothing changed.

PS3: installed 387.34 using package from NVIDIA’s site; working without issue.
nvidia-bug-report.log.gz (99.8 KB)

I think you can line up here:
Though your xserver is 1.19.6 so the circumstances under which this bug surface are unclear.

I looked at that thread, and while the issues are similar, I did not see browser performance mentioned, and the software stack is different. Hopefully, this post can stand so we can make it clear that it is not just Mint suffering from issues.

Edit: durp, the same browser performance problem was mentioned in the first post. Feel free to delete/merge.

Firefox under NVIDIA binary drivers is an infinite story of pain. Here’s how it can be fixed to run fast.

Open about:config and set these parameters:

user_pref("", true);
user_pref("gfx.xrender.enabled", true);
user_pref("layers.acceleration.force-enabled", true);

It took me several hours to find these parameters. And none of these options are required under nouveau.

Demos to check the resulting performance (my results): (~150) (1357) (1000 fish: 24-28) (16, still not properly accelerated under Linux/MacOS) (painfully slow) (2000 fish: 17) (21-37fps)

Same situation for me on Arch Linux with xorg 1.19.6, nvidia 390.25 and kernel 4.15.1. However not only chrome, but also my chromium browser is affected.

In addition to this there is also a new bug which breaks vsync as seen on this makes all video including Netflix unwatchable due to stutter (60 hz instead of correct 59.95 as before). Let me know if you experience stutter (I will be starting a new thread). Hardware is in signature.