inky icon indicating copy to clipboard operation
inky copied to clipboard

Power Drain on m1 Mac laptop

Open WhipCrackJack opened this issue 1 year ago • 5 comments

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

WhipCrackJack avatar Jan 08 '25 18:01 WhipCrackJack

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

Image

If it is not too difficult to build inky, I'll look into that issue.

rhizoome avatar Jan 25 '25 12:01 rhizoome

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.

  1. I had to move "appdmg": "^0.6.6" to devDependencies in package.json
  2. 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

rhizoome avatar Jan 25 '25 15:01 rhizoome

I uploaded Inky.app here https://1042.ch/Inky.zip

Please note:

  1. I do not know if it will run on another machine, because I cannot sign the code
  2. It is built from master, not tested much (it runs my work), it is not official!

rhizoome avatar Jan 25 '25 15:01 rhizoome

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.

WhipCrackJack avatar Jan 25 '25 15:01 WhipCrackJack

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.

josh-berry avatar Sep 21 '25 20:09 josh-berry