dessalines / torrenttunes-client

DEPRECATED: A BitTorrent-based music streaming service.
GNU General Public License v3.0
360 stars 43 forks source link

High CPU use when playing #95

Open gtrias opened 8 years ago

gtrias commented 8 years ago

I'm having a constant 30% use of CPU with firefox 45.0 when I'm listening a library song and having active the TorrentTunes tab. With the focus on a other tab already playing it decreases to 5%.

Testing with Chromium 49.0.2623.108 I'm facing a 15%, sometimes increasing to 30%.

My lscpu:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 42
Model name:            Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz
Stepping:              7
CPU MHz:               1678.617
CPU max MHz:           3700,0000
CPU min MHz:           1600,0000
BogoMIPS:              6798.17
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              6144K
NUMA node0 CPU(s):     0-3

Is this because the player?

dessalines commented 8 years ago

Its probably due to the audio playing, or possibly due to a memory leak when updating the status of downloading songs. I'd have to compare it with examples from http://www.schillmania.com/projects/soundmanager2/ , which is the library torrenttunes is using.