diff options
author | Niklas Haas <git@haasn.dev> | 2021-11-19 13:48:55 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2021-11-19 14:51:48 +0100 |
commit | 75ee35cec94d63842275016de43f9242166fa8e4 (patch) | |
tree | 7721f13ea83a660d5bb8e8e106b0f5da6bcc3ad7 /libmpv/render.h | |
parent | d1e9f4a159a88d9a51197c31b0823b5875d0f97b (diff) | |
download | mpv-75ee35cec94d63842275016de43f9242166fa8e4.tar.bz2 mpv-75ee35cec94d63842275016de43f9242166fa8e4.tar.xz |
vo_gpu_next: simplify and improve frame redrawing logic
This almost perfectly recreates the semantics of --vo=gpu, i.e.:
- still frames are never interpolated
- non-repeated frames bypass single frame cache
The only difference is that libplacebo doesn't do a cache/blit on the
full output image, but rather it re-runs the last rendering step. This
has some advantages and some drawbacks. The most notable advantage is
that it also allows re-using the image contents when the only thing that
changes is the OSD (whereas `--vo=gpu` would force a full re-render for
that). The most notable drawback is that it also implies going through
the dithering and output LUT logic on redraws. All in all, I think this
is a pretty good trade-off in favor of `--vo=gpu-next`.
Fully fixes the last remaining performance difference in #9430.
Diffstat (limited to 'libmpv/render.h')
0 files changed, 0 insertions, 0 deletions