Scene graph · interface
VisitResult
What a traversal discarded, and what it handed over.
Explained in Hello world, The scene graph.
interface VisitResultimport type { VisitResult } from '@driftengine/core';In depth
The pruned count is a measurement rather than a curiosity. A hierarchy that prunes nothing is a linear scan with extra steps, and the only way to know which one a given world produces is to count. A caller printing this beside its frame time is what turns "the partition helps" from a belief into a number.
Properties
| Name | Type | Description |
|---|---|---|
visited | number | Nodes with geometry handed to the visitor. |
pruned | number | Subtrees rejected whole, each standing for every node beneath it. |
tested | number | Nodes reached and tested, which is what pruned saved a multiple of. |