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

Investigate/Fix CPU utilization #29

Open
MatthiasGrandl opened this issue May 1, 2024 · 2 comments
Open

Investigate/Fix CPU utilization #29

MatthiasGrandl opened this issue May 1, 2024 · 2 comments

Comments

@MatthiasGrandl
Copy link
Owner

Loungy is pretty heavy on CPU. It's not acceptable for it to use 1.5% of my CPU while running in the background, draining my battery.

Even worse, it seems after some sleep/wakeup cycles Loungy sometimes goes into a state of hogging the entire CPU, making my MacBook run hot and draining the battery insanely fast. I have yet to figure out what causes this.

MatthiasGrandl added a commit that referenced this issue May 2, 2024
@MatthiasGrandl
Copy link
Owner Author

I fixed the wakeup issue in GPUI, waiting for feedback from upstream if the fix can be upstreamed, but for Loungy purposes it works nicely.

@MatthiasGrandl
Copy link
Owner Author

MatthiasGrandl commented May 13, 2024

Another issue is the current clipboard implementation. If you have a big image in the clipboard, it's bytes get hashed every second, which causes huge CPU utilization. Instead of polling arboard I should implement a platform specific clipboard watcher that notifies the clipboard module somehow.

done

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

No branches or pull requests

1 participant