Skip to content
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

Any way to reduce CPU usage? #13

Open
colemand77 opened this issue Jan 8, 2024 · 3 comments
Open

Any way to reduce CPU usage? #13

colemand77 opened this issue Jan 8, 2024 · 3 comments

Comments

@colemand77
Copy link

🚀 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
Copy link
Owner

epwalsh commented Jan 8, 2024

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

@colemand77
Copy link
Author

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
Copy link
Owner

epwalsh commented Jan 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants