Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPE perform lower FPS than gtk. #739

Open
iDalink opened this issue Oct 8, 2024 · 1 comment
Open

WPE perform lower FPS than gtk. #739

iDalink opened this issue Oct 8, 2024 · 1 comment

Comments

@iDalink
Copy link

iDalink commented Oct 8, 2024

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
Copy link
Contributor

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants