Skip to content
  • Tim-Philipp Müller's avatar
    rtpvrawpay: use buffer lists · fdf95fec
    Tim-Philipp Müller authored
    Collect buffers to send out in buffer lists instead of
    pushing out single buffers one at a time. For HD video
    each frame might easily add up to a couple of thousand
    packets, multiply that by the frame rate and that's a
    lot of push() and sendmsg() calls per second.
    
    A good reason to push out buffers as early as possible is
    latency, so we don't accumulate the whole frame in a single
    buffer list, but instead push it out in a few chunks, which
    is hopefully a reasonable compromise.
    fdf95fec