Page MenuHome

Realtime Compositor: Implement static cache manager
ClosedPublic

Authored by Omar Emara (OmarSquircleArt) on Nov 1 2022, 11:32 AM.

Details

Summary

This patch introduces the concept of a Cached Resource that can be
cached across compositor evaluations as well as used by multiple
operations in the same evaluation. Additionally, this patch implements a
new structure for the realtime compositor, the Static Cache Manager,
that manages all the cached resources and deletes them when they are no
longer needed.

This improves responsiveness while adjusting compositor node trees and
also conserves memory usage.

Diff Detail

Repository
rB Blender
Branch
static-cache-manager (branched from master)
Build Status
Buildable 24443
Build 24443: arc lint + arc unit

Event Timeline

Omar Emara (OmarSquircleArt) requested review of this revision.Nov 1 2022, 11:32 AM
Omar Emara (OmarSquircleArt) created this revision.
Clément Foucault (fclem) added inline comments.
source/blender/compositor/realtime_compositor/cached_resources/intern/morphological_distance_feather_weights.cc
25–40

For such small functions, I would consider moving them to the header.

This revision is now accepted and ready to land.Nov 4 2022, 10:45 AM