pub enum GraphRebuildReason {
RootLayerUnavailable,
DirtyLayerUnavailable,
UnmatchedDirtyNodes(usize),
}Expand description
Why a scoped scene update could not be applied, forcing the caller to throw the scene away and build it again from the applier.
The reason has to travel with the outcome because the shell picks the scoped path from the shape of the dirty set, before this code runs, and logs that choice. A frame that chose the scoped path and then rebuilt the whole scene is the expensive case, and in the log it reads exactly like a cheap patch – so the fallback says so itself.
Variants§
The root was dirty and its replacement layer could not be built.
A dirty subtree’s replacement layer could not be built.
UnmatchedDirtyNodes(usize)
This many dirty nodes own no record in the scene, so the scoped walk never reached them. A dirty node that never made a record, or whose record left the scene this frame, cannot be patched in place.