epwalsh / pomo.nvim

:new: :stopwatch: A simple, customizable pomodoro timer for Neovim, written in Lua, with nvim-notify, lualine, and telescope integrations
Apache License 2.0
154 stars 7 forks source link

Any way to reduce CPU usage? #13

Open colemand77 opened 6 months ago

colemand77 commented 6 months ago

🚀 The feature, motivation and pitch

The CPU usage of my terminal jumps to ~10% when the timer is counting down?
That feels high... curious if you see that as well and whether you've considered any ways to reduce?

Alternatives

No response

Additional context

No response

epwalsh commented 6 months ago

Hey @colemand77 have you tried increasing update_interval in your pomo.nvim config?

colemand77 commented 6 months ago

Hey @epwalsh - thanks for responding. Yeah, I did, but even at 5000 it's still around 7-8% of CPU.
Certainly usable but feels heavy for a countdown timer?
Guessing you don't see the same... I'm on a windows machine running WezTerm for whatever that's worth.

epwalsh commented 6 months ago

I do see a drop when setting to 5000 myself, although it's still a little higher than normal (~1%) when the timer is actively displayed through nvim-notify. Are you using nvim-notify too? When I hide the timer so it's only in my Lualine status bar CPU usage appears normal. There might be an nvim-notify setting to reduce CPU usage there.