> -----Original Message----- > From: webkit-wpe [mailto:webkit-wpe-boun...@lists.webkit.org] On Behalf Of > Andy Pont > Sent: woensdag 23 oktober 2019 13:27 > To: meta-freescale Mailing List <meta-freesc...@yoctoproject.org> > Cc: yocto@yoctoproject.org; webkit-...@lists.webkit.org > Subject: [wpe-webkit] Optimising imx6 performance for HTML5 using Cog + > WPE WebKit > Hello, > > Broadening this out to the Freescale and Yocto mailing lists to see if any one > has any answers… > > We are using Cog and WPE Webkit on an i.MX6 Solo based board with a user > interface that is based on HTML5, Javascript and CSS and are having some > issues with fading and other canvas effects. The board is running a Yocto > image with the following in conf/local.conf: > > PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-rdk" > PACKAGECONFIG_pn-wpebackend-rdk = "imx6" > > PACKAGECONFIG_append_pn-cairo = " glesv2 egl" > PACKAGECONFIG_append_pn-wpewebkit = " 2dcanvas" > > We start the browser with the following command line: > > cog --enable-accelerated-2d-canvas=1 appui/index.html > > Are there any other settings we should be using either in the Yocto build or > when launching Cog as we are finding the CPU usage is >90%? > > Is there a definitive way to show that all of the necessary drivers are loaded > and Cog is making use of the GPU? > > I have tried this with Cog 0.3.0 built with WPE WebKit 2.24.1 and Cog > 0.4.0 built with WPE WebKit 2.26.1 and both give the same dissappointing > results, as does running on the iMX6Q-SDP board I also have here.
Problem with 'interface based on HTML5, javascript and CSS', is that it can be done in a thousand ways... Some of them will fall back to hardware, and some of them will need calculation so take CPU time. Without an insight in a code-abstraction, it's impossible to tell what the issue is. https://medium.com/outsystems-experts/how-to-achieve-60-fps-animations-with-css3-db7b98610108 => some hints on how to improve mobile performance https://www.sitepoint.com/introduction-to-hardware-acceleration-css-animations/ => some more hints to leverage functions to hardware But I also don't reach 60fps on imx6 (yet?) Grt, Wouter -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto