Bug 209858 - [GTK] WebkitGTK Layout and Rendering High CPU Usage
Summary: [GTK] WebkitGTK Layout and Rendering High CPU Usage
Status: RESOLVED DUPLICATE of bug 197002
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2020-04-01 08:19 PDT by aakash.kapoor
Modified: 2020-04-01 15:44 PDT (History)
7 users (show)

See Also:


Attachments
High CPU Usage on Touchpad Gestures (227.89 KB, image/png)
2020-04-01 08:19 PDT, aakash.kapoor
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description aakash.kapoor 2020-04-01 08:19:02 PDT
Created attachment 395169 [details]
High CPU Usage on Touchpad Gestures

Performing any pinch touchpad gesture causes a high CPU usage (leading to a sense of hanging up of webpage and unresponsiveness). Attached is a screenshot of WebInspector of what happens when I pinch to zoom in or zoom out. Even in general, scrolling causes a high CPU usage primarily caused by the Layout and Rendering part. In addition, this happens with and without content blocking both. Of course, without content blocking the web browser stutters even more because of a high number of Javascript events.
This is regardless of the website and is a general issue with the browser for a long time.
Comment 1 Carlos Alberto Lopez Perez 2020-04-01 12:44:12 PDT
Which version of WebKitGTK its this?

Can you check what value you have for the epiphany gsetting for hardware-acceleration?

Try running this command:
$ gsettings list-recursively |grep -i epiphany|grep -i hardware-acceleration

Can you try setting it to the value 'always' and restart epiphany?
Can you still reproduce with always?
Comment 2 aakash.kapoor 2020-04-01 13:23:28 PDT
This is on WebkitGTK version 2.28.0 on Epiphany 3.36.1

I set the hardware-acceleration to ‘always’ and not only did the problem persist but I also got two new problems -
(a) Epiphany crashed the next time I opened it. I did the test after closing it and opening it later on.
(b) Kinetic Scrolling stopped working

So, hardware acceleration didn’t help.
Comment 3 Carlos Alberto Lopez Perez 2020-04-01 13:50:48 PDT
Which value do you have for hardware-acceleration-policy when the bug of high CPU usage triggers? ondemand or never?
Comment 4 Alice Mikhaylenko 2020-04-01 15:22:43 PDT
Duplicate of https://bugs.webkit.org/show_bug.cgi?id=197002?

The pinch zoom is pretty terrible right now, it naively tries to relayout the page on every frame. High CPU usage isn't the problem here, it's actually laggy and unresponsive.
Comment 5 Michael Catanzaro 2020-04-01 15:44:27 PDT

*** This bug has been marked as a duplicate of bug 197002 ***