diff options
author | wm4 <wm4@nowhere> | 2020-06-01 15:48:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-06-01 15:48:45 +0200 |
commit | c5158b057c8d0936ea12c5bc3153903263f03947 (patch) | |
tree | b4de2e885f54db7d3e04594c6f27d4cfa6de88a2 /TOOLS/lua/command-test.lua | |
parent | 57462580180ecc9006b625b94e895a38e1118f69 (diff) | |
download | mpv-c5158b057c8d0936ea12c5bc3153903263f03947.tar.bz2 mpv-c5158b057c8d0936ea12c5bc3153903263f03947.tar.xz |
audio: reduce extra wakeups caused by recent changes
The feeder thread basically woke up the core and itself too often, and
caused some CPU overhead. This was caused by the recent buffer.c
changes.
For one, do not let ao_read_data() wake up the core, and instead rely on
the feeder thread's own buffer management. This is a bit strange, since
the change intended to unify the buffer management, but being more
consequent about it is better deferred to later, when the buffer
management changes again anyway. And also, the "more" condition in the
feeder thread seems outdated, or at least what made it make sense has
been destroyed, so do something that may or may not be better. In any
case, I'm still not getting underruns with ao_alsa, but the wakeup
hammering is gone.
Diffstat (limited to 'TOOLS/lua/command-test.lua')
0 files changed, 0 insertions, 0 deletions