mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 23:45:57 +03:00
[GH-ISSUE #142] Super high cpu usage #101
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @erikc96 on GitHub (Aug 23, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/142
I just caught Psst using 90% of my cpu on an m1 mac. Is this not typical?
@jpochyla commented on GitHub (Aug 23, 2021):
No it is not typical. Do you have a reproducible example?
@Kethku commented on GitHub (Aug 24, 2021):
Did you build it in release mode?
@Kethku commented on GitHub (Aug 24, 2021):
On windows, psst uses .1% of my cpu while playing. In contrast, spotify sticks right around 1.7% to 2%. I definitely do not incounter 90% usage
@jpochyla commented on GitHub (Aug 25, 2021):
I've pushed a little optimization commit, ambient playback now takes about 3% on macOS MB Air. Of course this all depends on a lot of details, and Psst is not optimized much, there should be a lot of low-hanging fruit still.
@pablodz commented on GitHub (Aug 26, 2021):
0.00%
@Kethku commented on GitHub (Aug 26, 2021):
Repeat of https://github.com/jpochyla/psst/issues/12
@Kethku commented on GitHub (Aug 26, 2021):
@erikc96 could you run a profiler on the app when it is using all that cpu to get an estimate of where that cpu time is going?
@ceifa commented on GitHub (Sep 1, 2021):
30% CPU running version
e6e3cfafrom snap:How do I do that?
@jpochyla commented on GitHub (Sep 1, 2021):
@ceifa can you try the latest master? Ambient playback CPU usage should be much lower.
@ceifa commented on GitHub (Sep 1, 2021):
On current master version running the release mode:

But now "pulseaudio" takes a lot of CPU...
Running spotify:

@pablodz commented on GitHub (Sep 1, 2021):
Did you read about pipewire? it handles better CPU usage than pulseaudio.
@ceifa commented on GitHub (Sep 6, 2021):
Never did, but I will take a look, thanks for the hint!
@pablodz commented on GitHub (Sep 8, 2021):
Yes, check the graph in p10 https://elinux.org/images/5/55/Pipewire-slides.pdf
@jpochyla commented on GitHub (Sep 14, 2021):
High PulseAudio CPU usage is caused by the small buffer size we use now, will be solved when we switch to
cpalfor the audio output. Anyway that seems unrelated to the original issue, so let's close this, if you don't mind!