Igalia / meta-webkit

Yocto / OpenEmbedded layer for WebKit based engines and browsers
MIT License
125 stars 67 forks source link

Cog: How to check if the GPU is really being used for hardware acceleration? #402

Closed Oquirella closed 1 year ago

Oquirella commented 1 year ago

I get really poor performance on pages where svg graphs are being used. (on IMX8MP with vivante graphics driver).

psaavedra commented 1 year ago

SVG is being integrated in the accelerated graphics pipeline nowadays (ref: https://bugs.webkit.org/show_bug.cgi?id=90738) on WPE WebKit. @nikolaszimmermann is actively working on it.

Oquirella commented 1 year ago

I have added the option to wpewebkit.inc:

PACKAGECONFIG[svg] = "-DENABLE_LAYER_BASED_SVG_ENGINE=ON, -DENABLE_LAYER_BASED_SVG_ENGINE=OFF,"

I will start the build now, if it is performant, we should enable it as default.

nikolaszimmermann commented 1 year ago

I would call the option „lbse“.

Am 08.09.2022 um 17:47 schrieb Oquirella @.***>:

 I have added the option to wpewebkit.inc:

PACKAGECONFIG[svg] = "-DENABLE_LAYER_BASED_SVG_ENGINE=ON, -DENABLE_LAYER_BASED_SVG_ENGINE=OFF,"

I will start the build now, if it is performant, we should enable it as default.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

Oquirella commented 1 year ago

I enable the option, but i didn't see any performance improvements when showing my SVG graphs @nikolaszimmermann. The library i am using is: https://github.com/amcharts/amcharts4

nikolaszimmermann commented 1 year ago

Huh apparently I deleted the lower part of my answer. LBSE is under active development - it is neither built by default yet nor activated at runtime. You won‘t see anything by just compiling it in… you will have to wait before you can test it (probably in Q4).

Oquirella commented 1 year ago

That's too bad @nikolaszimmermann , i really wanted to test this feature. Is there no nightly or experimental branch or patch where this feature is fully enabled?

nikolaszimmermann commented 1 year ago

No not yet, we're working on it to make it happen soon.

Oquirella commented 1 year ago

The performance on the svg graphs in chromium is so much better, with cog it is unusable...

nikolaszimmermann commented 1 year ago

We're aware of the current limitations and actively work on improvments. If you want want to assist and getting your specific case to work faster, a striped down minimal reduced version of your web page, which exhibits the performance problems, would be helpful.

Oquirella commented 1 year ago

My website uses something like this: https://www.amcharts.com/demos/live-data/ https://www.amcharts.com/demos-v4/live-data-v4/

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stale for 7 days with no activity.