Igalia / cog

WPE launcher and webapp container
MIT License
242 stars 62 forks source link

WPE perform lower FPS than gtk. #739

Open iDalink opened 1 month ago

iDalink commented 1 month ago

Test cog and webkit2gtk`s Minibrowser on debian bullseye with I3 4150 CPU. Both of them display test_fps.html.

cog: 50 - 57FPS. webkit2gtk Minibrowser: 100 - 107FPS

So, cog has poor performance than webkit2gtk.

PS: Both of them use swrast_dri. test_fps.html.zip

septatrix commented 1 month ago

WebKit 2.46 replaced Cairo with Skia for rendering. As they noticed some regressions on low performance devices with Skia's GPU renderer they defaulted to the CPU renderer with WPE WebKit 2.46.1 but stayed on the GPU renderer for WebKitGTK (which generally runs on more powerful devices). Maybe that could be the difference in your case. You can try playing around with the WEBKIT_SKIA_ENABLE_CPU_RENDERING variable (but be aware that in 2.46.1 the switch is inverted - see the linked commit - though a fix for that should be included with the next release).