AutoMovie API
    Preparing search index...

    Account for staged and compact populations before simulation and frame passes.

    type IProps = {
        add: (
            owner: string,
            source: string,
            metric: AutoMovieRenderMetric,
            cost: number,
            kind?: NonNullable<IAutoMovieRenderOwnerCost["kind"]>,
        ) => void;
        costs: Map<string, IAutoMovieRenderModelCost>;
        drawnModels: Set<string>;
        flattenedModels: Set<string>;
        model: (id: string, cited: string) => IAutoMovieModel;
        nodeIndex: Map<string, IAutoMovieSemanticMaskEntry>;
        subject: IAutoMovieRenderSubject;
    }
    Index
    add: (
        owner: string,
        source: string,
        metric: AutoMovieRenderMetric,
        cost: number,
        kind?: NonNullable<IAutoMovieRenderOwnerCost["kind"]>,
    ) => void

    Append an owner/source metric row synchronously. Cost uses the named metric's unit; this phase omits kind. Exceptions propagate and prior mutations remain. The inventory caller owns owner/source metric accumulation; measureRenderPopulation invokes this synchronous sink and does not roll back prior sink effects on failure.

    costs: Map<string, IAutoMovieRenderModelCost>

    Mutable request-local model-cost cache populated by the shared measurer.

    drawnModels: Set<string>

    Mutable set receiving every drawn model, including every cited LOD tier.

    flattenedModels: Set<string>

    Mutable set receiving compact-population models whose geometry is flattened.

    model: (id: string, cited: string) => IAutoMovieModel

    Resolve a model id synchronously; cited is diagnostic owner text. Errors propagate. measureAutoMovieRenderInventory supplies model resolution; measureRenderPopulation calls it synchronously with model identity and diagnostic citation, and propagates failures.

    nodeIndex: Map<string, IAutoMovieSemanticMaskEntry>

    Borrowed node-id lookup used to attribute lowered building elements.

    Borrowed scene and compact populations; this phase does not mutate them.