Hi. I'm a user of wallpaper engine, and a man who implement it for Linux. However, some wallpapers which I like used webgl, but plasmashell not support it. So I am here to ask can we enable webgl for plasmashell? a issue relevant is: https://github.com/catsout/wallpaper-engine-kde-plugin/issues/44
FWIW we support GL natively so going via WebGL and a WebView adds a lot of overhead that could be avoided by just shoving your shader in a ShaderEffect item. >Qt::AA_ShareOpenGLContext I meant to add that to Plasma for other performance reasons. Apparently I never pushed it. I'll do that and that might happen to fix this.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1349
Thanks for your comments and efforts very much. :) I'd like to help test it if needed
Git commit 6c1c6b86db07348b636c39ee344a12570e4e322c by David Edmundson. Committed on 25/07/2022 at 10:36. Pushed by davidedmundson into branch 'master'. Use shared contexts for plasmashell Shared contexts allow us to share textures and vertex buffers between contexts (windows) this allows us to reduce memory in popups and alike. To fully make use of this requires some follow up work in ManagedTextureNode for FrameSVG, but we should sitll get some OOTB. If shared contexts are not supported this fails gracefully - though we are relying on shared contexts within kwin for a release without issue. It also should fix WebGL inside WebViews. M +1 -0 shell/main.cpp https://invent.kde.org/plasma/plasma-workspace/commit/6c1c6b86db07348b636c39ee344a12570e4e322c