-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
High CPU usage on some machines #7181
Comments
Can you take a CPU profile with Chrome devtools? |
Here it is the high usage cpu profile and here the same machine minimized. Thanks |
Can you try whether the problem is still there in Electron 1.4.0? |
It seems that is more a DOM/front end issue and how it deals with animation (there was an animation that was changing a Dom Element width causing the dom to be recalculated) and a hardware issue than anything related with electron or chromium. Don't know why the difference of performance on chrome and chromium though but is not a big issue. Thanks for the help. The only thing I think maybe is worth a check is to see why cpuprofiles are not being saved on 1.4. |
A user reported the same issue . |
I Found out that on the page there was a playback bar that changed the width thus causing dom re rendenring and that had a impact of performance on the "crappy" machine of 30% , changing this to a css transform approach made it more usable. The page on chrome used less cpu but it's probably because it was not a foreground application and chrome put some restriction upon that. |
This was fixed today in #7413 |
Should I be able to save timeline as well? It seems my problem is that the audio stops or chops on rendering when the cpu is too high. Chrome does not seem to behave the same way |
I have a application that is pretty much just a webSite saved, with very little front end js code.
On this specific machine (and a few others) the app consumes almost 100% of the cpu when maximized, and as little as 10% when minimized. At first I thought it would be the fact that I am playing audio but if that was the case the minimized app would consume an equivalent amount of CPU.
On my machine a Windows 10 with a Intel Core i7-4510U 2 GHZ 2,6 GHZ it goes to 3% tops. Can this be something electron chromium or something else?
Thanks in advance
PS: I tested some of the buggy machines and on the same site it runs on about 5~20% on a chrome
The text was updated successfully, but these errors were encountered: