Power Drain on m1 Mac laptop
Hello,
I am running Inky - Inky version: 0.15.1 ink version: 1.2.0 inkjs version: 2.2.3 - on my M1 Mac laptop and it is draining my battery really fast. Any thoughts?
Thanks!
Jacob
I am seeing this too. As soon as I work with a saved file the renderer will use a lot for CPU. Therefore I think these issues are still relevant: #63, #239
If it is not too difficult to build inky, I'll look into that issue.
I built inky on MacOS 15.2 and the resulting Inky.app does not have the issue. The build did not work with the source as-is.
- I had to move "appdmg": "^0.6.6" to devDependencies in package.json
- I had to run npm update or it would not build
cd app
hx package.json #move appdmg
npm update
cd ..
sh BUILD_FOR_MAC.command
console.log(process.versions.electron);
30.5.1
I uploaded Inky.app here https://1042.ch/Inky.zip
Please note:
- I do not know if it will run on another machine, because I cannot sign the code
- It is built from master, not tested much (it runs my work), it is not official!
I built it on my machine - with a lot of help from AI to walk me through it - and it doesn't have the problem now. But I would rather not roll my own software. Hopefully the next release won't have this bug.
Can confirm on my Mac too—sampling the process shows me a ton of stat() calls (i.e. looking at filesystem metadata). For me, I noticed it only started after I moved the .ink file I was working on into the top level of my Documents folder, which has a ton of other unrelated things in it.
So I experimented a bit, and I was able to work around this by moving the .ink file in question into its own folder. For whatever reason, Inky seems to be trying to access every single file in the same directory (recursively) as the .ink file.