Chromium: Very choppy framerates with hardware acceleration

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
intrr
Level 1
Level 1
Posts: 2
Joined: Tue Mar 20, 2018 3:45 pm

Chromium: Very choppy framerates with hardware acceleration

Post by intrr » Tue Mar 20, 2018 3:49 pm

Hello,

first post, and while I'm at that: Returning to Desktop Linux for the first time in 10 years, and Linux Mint is great! (Among others, it's the first Linux Distro I've ever seen that's NOT ugly!).

So, here we go: I have it on an older Laptop (Core i5, Geforce GT 540M). Still, the compositing window manager and everything runs very smoothly, including 60 fps animations / web-based games in Firefox, etc.

HOWEVER, in Chromium AND Chrome, everything is VERY sluggish unless I turn off "Use Hardware acceleration" in Chrome/Chromium. Also, vsynctester.com runs at a constant 60 fps and "grey" in Firefox, while it is completely choppy in Chrome and Chromium.

I've tested this on various Linux Mint installs and I get the same results everywhere.

Is this a problem with Chromium? NVidia drivers? Does anyone else see this? Is there a fix?

Thanks!

User avatar
Pjotr
Level 20
Level 20
Posts: 11064
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Chromium: Very choppy framerates with hardware acceleration

Post by Pjotr » Tue Mar 20, 2018 4:00 pm

Please generate an overview of your system like this:
- Launch a terminal window (this is how to launch a terminal window);
- make the terminal window full screen, to avoid chopped lines;
- Copy/paste this command into the terminal:

Code: Select all

inxi -Fxz
(if you type: the letter F is a capital letter)

Press Enter.

Copy/paste the output in your next message.
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

DAMIEN1307
Level 6
Level 6
Posts: 1239
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Chromium: Very choppy framerates with hardware acceleration

Post by DAMIEN1307 » Tue Mar 20, 2018 4:13 pm

hardware acceleration is not always the best way to go...depends on the other hardware you have...how old is it...drivers up to date...is the CPU more powerful than the hardware in question etc...so it is not necessarily a "problem" where a "fix" is needed but just maybe how your system actually works best...i suspect that is why the browsers always seem to have an "enable" and "disable" button for this function precisely for these type of situations...DAMIEN

https://www.maketecheasier.com/what-is- ... t-matters/
ORDO AB CHAO

intrr
Level 1
Level 1
Posts: 2
Joined: Tue Mar 20, 2018 3:45 pm

Re: Chromium: Very choppy framerates with hardware acceleration

Post by intrr » Tue Mar 20, 2018 6:38 pm

Pjotr wrote:
Tue Mar 20, 2018 4:00 pm
Please generate an overview of your system like this:

Code: Select all

System:    Host: minty Kernel: 4.13.0-37-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.3 Sylvia
Machine:   Mobo: MSI model: H81I (MS-7851) v: 2.0 Bios: American Megatrends v: V10.6 date: 03/30/2015
CPU:       Quad core Intel Core i7-4790T (-HT-MCP-) cache: 8192 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 21598
           clock speeds: max: 3900 MHz 1: 2699 MHz 2: 2699 MHz 3: 2699 MHz 4: 2699 MHz 5: 2699 MHz 6: 2699 MHz
           7: 2699 MHz 8: 2699 MHz
Graphics:  Card: NVIDIA GT218 [GeForce 210] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 driver: nvidia Resolution: 1280x1024@60.02hz, 2560x1080@60.00hz
           GLX Renderer: GeForce 210/PCIe/SSE2 GLX Version: 3.3.0 NVIDIA 340.104 Direct Rendering: Yes
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 NVIDIA High Definition Audio Controller driver: snd_hda_intel bus-ID: 01:00.1
           Sound: Advanced Linux Sound Architecture v: k4.13.0-37-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: <filter>
           Card-2: Realtek RTL8191SU 802.11n WLAN Adapter usb-ID: 005-002
           IF: N/A state: N/A mac: N/A
Drives:    HDD Total Size: 240.1GB (74.5% used) ID-1: /dev/sda model: KINGSTON_SV300S3 size: 240.1GB
Partition: ID-1: / size: 213G used: 159G (79%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 8.53GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:39C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 238 Uptime: 2 min Memory: 933.5/7919.6MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
(this is another system, but shows the same behaviour).

I just noticed that when I make the Chrome window smaller, the problem goes away. Also, it depends on the position on the screen (!!!). In some places, it is always choppy, in others, it is always smooth (60 fps). Also, on this system (Geforce 210, very old), if I move any window (say, the System Settings window) around with the mouse, the movement is smooth and immediate in some areas of the screen, while it is choppy and lags in others.

Very strange...

EDIT: Thinking about it, as a compositing window manager probably shovels the screen contents to the graphics card all the time with "intelligent" choice of updated areas etc., that stone old card probably just doesn't have enough memory bandwidth... maybe my initial question was stupid :)

EDIT 2: Seeing how the graphics card is extremely weak and the CPU is top-notch in this system, maybe I should try turning off the NVidia driver and use software rendering for everything?

User avatar
mank_in
Level 6
Level 6
Posts: 1391
Joined: Wed Nov 16, 2011 2:29 pm
Location: Bali

Re: Chromium: Very choppy framerates with hardware acceleration

Post by mank_in » Thu Mar 22, 2018 12:37 pm

Image
Sorry for my bad English , I am Indonesian.

User avatar
Executioner
Level 3
Level 3
Posts: 105
Joined: Sat Feb 06, 2016 1:49 pm

Re: Chromium: Very choppy framerates with hardware acceleration

Post by Executioner » Sat Mar 24, 2018 12:42 am

mank_in wrote:
Thu Mar 22, 2018 12:37 pm
Try this solution : http://www.webupd8.org/2014/01/enable-h ... hrome.html
Thanks for this tip! Mine was disabled, and after enabling it, it works with my Lenovo T510 laptop.

Post Reply

Return to “Software & Applications”