• Steven Walters's avatar
    Threaded lookahead · 6940dcae
    Steven Walters authored
    Move lookahead into a separate thread, set to higher priority than the other threads, for optimal performance.
    Reduces the amount that lookahead bottlenecks encoding, greatly increasing performance with lookahead-intensive settings (e.g. b-adapt 2) on many-core CPUs.
    Buffer size can be controlled with --sync-lookahead, which defaults to auto (threads+bframes buffer size).
    Note that this buffer is separate from the rc-lookahead value.
    Note also that this does not split lookahead itself into multiple threads yet; this may be added in the future.
    Additionally, split frames into "fdec" and "fenc" frame types and keep the two separate.
    This split greatly reduces memory usage, which helps compensate for the larger lookahead size.
    Extremely special thanks to Michael Kazmier and Alex Giladi of Avail Media, the original authors of this patch.
    6940dcae
Name
Last commit
Last update
..
arm Loading commit data...
ppc Loading commit data...
sparc Loading commit data...
x86 Loading commit data...
bs.h Loading commit data...
cabac.c Loading commit data...
cabac.h Loading commit data...
common.c Loading commit data...
common.h Loading commit data...
cpu.c Loading commit data...
cpu.h Loading commit data...
dct.c Loading commit data...
dct.h Loading commit data...
display-x11.c Loading commit data...
display.h Loading commit data...
frame.c Loading commit data...
frame.h Loading commit data...
macroblock.c Loading commit data...
macroblock.h Loading commit data...
mc.c Loading commit data...
mc.h Loading commit data...
mdate.c Loading commit data...
osdep.h Loading commit data...
pixel.c Loading commit data...
pixel.h Loading commit data...
predict.c Loading commit data...
predict.h Loading commit data...
quant.c Loading commit data...
quant.h Loading commit data...
set.c Loading commit data...
set.h Loading commit data...
visualize.c Loading commit data...
visualize.h Loading commit data...
vlc.c Loading commit data...