mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
Strips that have their content fully opaque benefit in two ways: 1) they can stop evaluation of strips under them that are fully covered by their area, and 2) they do not need to get blended with a dummy black input when they are the bottom strip. Detect when the result of compositor evaluation is fully opaque (i.e. no pixels contain alpha below 1.0), and mark the result accordingly. Before this PR, strips with compositor modifier were assumed to contain alpha just in case. Performance: on EXR image sequence with compositor modifier that has bloom + tune image + sensor noise, on Ryzen 5950X / RTX 3080Ti, time to calculate VSE frame (render_strip_stack): - 4K resolution: CPU 1550 -> 1420ms, GPU 235 -> 135ms - HD resolution: CPU 212 -> 203ms, GPU 27 -> 18ms In order to achieve the above: Refactor: Most VSE render functions now return SeqResult instead of ImBuf - The is_opaque_before_transform part of result is used above to properly detect compositor modifier transparency presence (can't do that via ImBuf color mode, since that can include alpha due to strip transform, even if the actual strip rectangle is fully opaque) - Later on, I expect ability for rendered result to live on the GPU will also be part of SeqResult. Pull Request: https://projects.blender.org/blender/blender/pulls/158600
3 lines
130 B
Text
3 lines
130 B
Text
version https://git-lfs.github.com/spec/v1
|
|
oid sha256:4ced63ee8e4f260027995fb4de5c6a82c2dcd437bfea4e759c0883c55b67f027
|
|
size 88818
|