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

Andrea Giammarchi andrea.giammarchi at gmail.com
Mon Jun 7 01:44:08 PDT 2021

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/1823b677/attachment.htm>

More information about the webkit-gtk mailing list