• Fiona Glaser's avatar
    Improve lookahead-threads auto selection · d2a9d254
    Fiona Glaser authored
    Smarter decision to improve fast-first-pass performance in 2-pass encodes.
    Dramatically improves CPU utilization on multi-core systems.
    Tested on a quad-core Ivy Bridge (12 threads, 1080p):
    Fast first pass:
    veryfast:     ~7% faster
    faster:      ~11% faster
    fast/medium: ~15% faster
    slow/slower: ~42% faster
    veryslow:    ~55% faster
    veryfast:     ~9% faster
    (all others remained the same)
encoder.c 152 KB