[webkit-gtk] Hardware acceleration on raspberry pi 4 using buildroot.

C Larbi pkl2000us at gmail.com
Mon Jun 7 05:09:26 PDT 2021

Thanks for your suggestions Andrea.
I followed up on your WPE comment and found out that there is a build
switch called "-DUSE_WPE_RENDERER" to let webkitgtk use the WPE renderer.

In my buildroot configuration file, this switch is off, but further reading
revealed that upstream recommends the use of this option.

I am away from my build system currently, but will give it a try (turn on
wpe renderer switch) when i get back


On Mon, Jun 7, 2021, 8:44 AM Andrea Giammarchi <andrea.giammarchi at gmail.com>

> Not sure if relevant, or a proper answer, 'cause I think there are no
> bindings for Gtk (or maybe there are?) but the fastest browser for the Pi
> (2, 3, 4) is WPEWebKit, which is HW accelerated.
> To date, I've never managed to get nearly similar performance via
> WebKit2-GTK: not CSS, not Canvas, even less WebGL, video are slow.
> Maybe you can bootstrap COG and WPE a part? For all those cases I've
> mentioned, it does an excellent job (30fps+ stable on full screen WebGL,
> and excellent video playback + smooth CSS animations).
> On Mon, Jun 7, 2021 at 1:08 AM C Larbi <pkl2000us at gmail.com> wrote:
>> I am working on an information display screen using webkitgtk.
>> The system was put together using buildroot.
>> The display screen uses some javacript to manipulate the DOM to create
>> some effects.
>> So far everthing seems to be working perfectly except that it seems
>> rendering the effects seem to be slow.
>> Some of these effects are to give smooth transitions, but on my pi 4,
>> these transitions are seen as visible STEPS instead of being smooth.
>> I am no expert in GPUs but it seems the gpu is not being utilized in
>> rendering.
>> When i set the environment variable "WEBKIT_FORCE_COMPOSITING_MODE" to 1,
>> the whole screen gets garbled.
>> I will appreciate any pointers in getting this fixed
>> Below are some details of my system:
>> webkitgtk version = 2.30.2
>> Mesa3d version = 20.2.2
>> Opengl es and opengl egl are enabled
>> Using wayland compositor (weston)
>> Using the vc4-fkms-v3d on pi 4
>> Regards
>> Cerezo
>> _______________________________________________
>> webkit-gtk mailing list
>> webkit-gtk at lists.webkit.org
>> https://lists.webkit.org/mailman/listinfo/webkit-gtk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20210607/d3b2d533/attachment.htm>

More information about the webkit-gtk mailing list