Comments (4)
My guess is that its just Python being Python. I briefly read through the code, and didnt find any ridiculous while
loops that might be the cause. Although the maintainers would know it better
from blanket.
That's what I thought too, though even for python that usage looks not too reasonable. Well the app is really nice though, so don't really mean to escalate the problem
from blanket.
The CPU usage only goes up when the app is playing, and it goes higher or lower depending on how much sounds you're playing at once.
So I would assume that the cause is GStreamer. If you play individual sounds on Totem or Clapper, you will see a CPU usage that is equal to or higher than Blanket when multiplied by the number of sounds playing at once.
from blanket.
!['Volume levels' setting page showing multiple volume sliders for Blanket](https://private-user-images.githubusercontent.com/20475412/306103241-18ae8281-babc-4acd-b918-9984772f371a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk5NTk0ODksIm5iZiI6MTcwOTk1OTE4OSwicGF0aCI6Ii8yMDQ3NTQxMi8zMDYxMDMyNDEtMThhZTgyODEtYmFiYy00YWNkLWI5MTgtOTk4NDc3MmYzNzFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzA5VDA0Mzk0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1YjJhMGY4MGUzNDQ3ZDVjMjRmZjIyZDUyYjFiNjlhZTNmNWU5NmEwZTg1MTA5MGM1M2I4NTkwNTk0MGExZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VW-NoygYv_OZycGsOwZdwQDceMLwoIxCvmfZrJgKzbE)
In a related note, Blanket is using one channel per sound instead of combining them. Maybe that makes a difference performance-wise. Then the multi-channel output could be made optional. (It still has its uses, i.e. playing Rain on the stereo and Summer Night through a different speaker closer to the window)
from blanket.
Related Issues (20)
- Autostart on pause HOT 2
- Can we get a Windows version? HOT 4
- I'm facing an error during startup, "Failed to load shared library 'libgtk-4.so.1'".
- Blanket leaks memory HOT 6
- [Request] Update Blanket to support new Adw.AboutWindow HOT 2
- Change train sound to comply with DFSG HOT 11
- Pink Noise Loop Gap HOT 1
- Scrolling through the list without accidentally changing volumes is difficult HOT 1
- Additional sound "purring cat" HOT 1
- Custom sounds don't play after a while of being added HOT 1
- How to hack UI? HOT 1
- Rename presets to something different? HOT 2
- Start sequence problem
- Use notification play next/previous to change preset
- Snap package ready HOT 33
- MPRIS control: It seems Blanket doesn't know the methods Pause, Play, and Stop; only Play-Pause HOT 1
- Message "PyGIWarning: GstPlay was imported without specifying a version first." HOT 1
- Unify Bengali(India) and Bengali and Bengali(Bangladesh) into Bengali
- The app doesn't always start playing sounds when autostarted in the background
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blanket.