-
Notifications
You must be signed in to change notification settings - Fork 26
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
Cobble UI will eat CPU in the background #180
Comments
This appears to be caused by the store WebView. It looks like there is a javascript loop or something on the https://store-beta.rebble.io/?native=true&platform=android. Issue disappears if I remove the WebView or change URL to something like google.com. |
I'd like to offer my insight. Initial examinationRunning profiler on https://store-beta.rebble.io/?native=true&platform=android yields this: It seems like there's something running all the time but it's not JS loop. More importantly, something is using GPU every 30 ms. Here's what happens: If we contrast this with google.com, there's almost no activity at Google's page: Drill downAt first I thought there's an issue with gifs, what if we remove them? Ok, next step is to disable JS and see what happens... Nothing happens because page doesn't load without JS 😁 Ok, let's load the page first and then disable JS... Nope, even without JS something is causing Update Layer Tree and Composite every 6 ms. Right, next plan is to take away HTML elements until we find offending element... After playing around with element tree, I figured out the issue is with loader for each watchface. I didn't take a look at source code yet but I see each watchface has some svg loader which I never see in page but I can see them in element tree. If I remove all of them with Tune in next time to see if loaders are really the culprit or if there's something else messing with us... |
adb shell top
)The text was updated successfully, but these errors were encountered: