CESNET / UltraGrid

UltraGrid low-latency audio and video network transmission system
http://www.ultragrid.cz
Other
492 stars 53 forks source link

High CPU usage for audio-only uncompressed transmission #252

Closed reduzent closed 1 year ago

reduzent commented 1 year ago

When using uv for an audio-only transmission with --audio-codec PCM, the uv process saturates a full CPU core. Given that no complex encoding is involved, I'd expect uv to consume much less cycles.

Client A (nl-11852.lan):

UltraGrid-1.7.6-x86_64.AppImage --tool uv -r jack -s jack --audio-codec PCM --audio-capture-format channels=2 -P30104:11064:5016:5014 frank.lan

Client B (frank.lan):

UltraGrid-1.7.6-x86_64.AppImage --tool uv -r jack -s jack --audio-codec PCM --audio-capture-format channels=2 -P30104:11064:5014:5016 nl-11852.lan

On both clients htop shows that uv is using ~100%.

Tested on:

With:

mpiatka commented 1 year ago

This was caused by busy-waiting for audio samples on the sender. It should now be fixed on today's continuous builds.

reduzent commented 1 year ago

I confirm this issue is fixed. Thank you very much!