[webkit-gtk] Hardware acceleration on raspberry pi 4 using buildroot.
andrea.giammarchi at gmail.com
Mon Jun 7 05:25:50 PDT 2021
Oh wow, I didn't know that myself ... this might be a game-changer for me
as well, as it sadden me I had no WPE option via GJS, but apparently there
is one, so I'll try to build it too.
If you're considering ArchLinux, I might put such build in AUR, as they
removed wpebwekit, completely destroying my automated ability to build the
bin, which I've done for a year or more.
Thanks for coming back with this info!
On Mon, Jun 7, 2021 at 2:09 PM C Larbi <pkl2000us at gmail.com> wrote:
> 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> wrote:
>> 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
>>> 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
>>> webkit-gtk mailing list
>>> webkit-gtk at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-gtk