hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
834 stars 202 forks source link

not bug,when the gmediarender playing on my mips ,the CPU occupancy rate upto 90% #32

Closed kgha closed 10 years ago

kgha commented 10 years ago

My mips CPU frequency is 400MHz.Sometimes,the playing music not smooth.Have some idea to reduce the CPU occupancy rate?

hzeller commented 10 years ago

Decoding music is CPU intensive. Often these older CPUs don't have a floating point unit, which makes it extra hard: a lot of decoders use floating point operations.

kgha commented 10 years ago

My CPU not has hardware floating point unit,and I use Alsa directly. When I using gst-launch playing music ,it about 40% CPU occupancy. I dont understand why the cpu occupancy is so high when using gmediarender play. I thank may the libupnp or libxml has not optimized

hzeller commented 10 years ago

Interesting, I need to look into this. gmrenderer itself only has one thread that checks every 1/2 second the current position of the stream, but I don't know what else is going on in the libraries. I'll have a look (but not before the next weekend).

kgha commented 10 years ago

I found it is my driver's problem,thankyou!

hzeller commented 10 years ago

Glad that it got resolved.