soonum / hubangl

A free/libre and easy to use streaming software.
GNU General Public License v3.0
17 stars 3 forks source link

VU-meter uses all of the CPU on one core #29

Closed leaf-node closed 6 years ago

leaf-node commented 6 years ago

When running HUBAngl without a microphone selected, HUBAngl uses 40% CPU. After selecting a microphone, the VU-meter appears and causes the application to use 100% CPU. The meter also seems to move slowly, but that is a lesser concern.

It seems like this issue could impact the performance of streaming. Fortunately the laptop I'm testing has one other core, but I don't yet know whether that will be sufficient.

leaf-node commented 6 years ago

overall, when streaming and saving to disk, the CPU use is about 120% on a 2 core system. i think that isn't too much of a problem.

one way to limit cpu use could be to limit the framerate to 10 fps, or much less, like 1 fps.

rubenquidam commented 6 years ago

I cannot replicate this, the vumeter doesn't seem to cause a significant overhead. Could you compare it with the previous implementation (branch standalone_dev)?

leaf-node commented 6 years ago

Okay, the standalone_dev branch has about the same CPU use as the new master branch. I should have tested that earlier. Sorry about all the hassle. : /