summaryrefslogtreecommitdiffstats
path: root/TOOLS/lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-06-01 15:48:45 +0200
committerwm4 <wm4@nowhere>2020-06-01 15:48:45 +0200
commitc5158b057c8d0936ea12c5bc3153903263f03947 (patch)
treeb4de2e885f54db7d3e04594c6f27d4cfa6de88a2 /TOOLS/lua
parent57462580180ecc9006b625b94e895a38e1118f69 (diff)
downloadmpv-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')
0 files changed, 0 insertions, 0 deletions