Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

procgen.stats

Structural counts of a .procGraph graph: its nodes, composites, inputs and outputs. With a target ("output:<name>" or "node:<id>[:<out>]") it also evaluates that target and reports its output type, how long the evaluation took in milliseconds, and for a geometry its vertex and triangle counts. The duration is only reported; it never feeds the graph's evaluation.

graph is the graph, by its VFS path or its name, or a graph object.

tools.use("procgen", "stats", { graph = "/source/scratch/Box.procGraph", target = "output:mesh" })

Part of procgen.toolbox, called as tools.use("procgen", "stats", ...) (zero procgen stats in the engine shell). Returns { nodes, composites, inputs, outputs }, and with a target also target, output_type, duration_ms, vertices and triangles.