Scene graph · interface

VisitResult

What a traversal discarded, and what it handed over.

Explained in Hello world, The scene graph.

interface VisitResult
import 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

NameTypeDescription
visitednumberNodes with geometry handed to the visitor.
prunednumberSubtrees rejected whole, each standing for every node beneath it.
testednumberNodes reached and tested, which is what pruned saved a multiple of.