Open ebeloded opened 7 years ago
It makes no sense why a text editor (yes, simple and beautiful) is using so much power. I think it is very important for a text editor to be very gentle with the battery. People would want to use this kind of app on their laptops off the grid for long periods of time.
I absolutely agree - we'll investigate.
Thanks.
My blind guess is that hardware acceleration is forced with CSS on everything. CSS Hardware acceleration is known for increasing the memory usage, as well as draining the battery.
This one would be easy to disconfirm.
Sure, we'll check that, it could also have something to do with automatic updates.
Hi @ebeloded,
We investigated the problem and we found out that Caret is doing background work while the app is not focused. We eliminated that and now the app should drain battery only if it is being used. This means that if you are using it rarely you shouldn't see Caret in your statistics.
This changes are available in the latest Caret 1.9.1 release. Could you try them out and see if you will see a difference?
Thanks in advance.
Great news, thanks! Will get back to you in a week after stats has been gathered.
@ebeloded Did you had chance to look at the new battery usage of Caret for the past week?
Caret still holds second position in my battery usage for last week:
I kept the app always up to date and didn't change the way I use it.
Thanks for the information. Can you answer a few quick questions so we could know how to approach this.
File -> Autosave
functionality turned on?@ebeloded Any news or changes with the experienced problem?
I'm sorry - this issue and your comment with questions slipped my radar.
Also, I was getting very unpredictable results from windows battery usage stats. It made me think that the stats may not be very reliable, thus the issue may not be with Caret at all.
I will give the battery testing another run today while using the app a lot. I'll get back to you at the end of the day and share my results.
Hey. I've been keeping an eye on the battery usage within varying time periods and it looks that the problem persists. Caret is reliably among top 5 apps to drain the battery. The stats also looked pretty coherent with the actual usage of apps.
I'll give you answers to your questions with my own observations:
Hope that helps.
Caret is using an insane amount of battery power. Here is a screenshot of battery usage by app on my Windows 10 PC:
Please note that I launch Caret couple times a day and use it sparingly, unlike Chrome, which is always on with multiple windows and dozens of tabs open.
Additionally, I want to point out that the problem is not with Electron: Visual Studio Code and Slack are also Electron-based apps and they are active all the time in my environment. VS Code is under heavy pressure all the time.
It makes no sense why a text editor (yes, simple and beautiful) is using so much power. I think it is very important for a text editor to be very gentle with the battery. People would want to use this kind of app on their laptops off the grid for long periods of time.
Wish you luck with finding the problem! I would also really appreciate if you could share your findings.