Skip to content

Data Flow

Thor Brigsted edited this page Mar 31, 2018 · 2 revisions

Choosing a good data flow is key to maximizing node performance. Depending on your use case, one of several data flow types can be applied. Note that while xNode provides convenient flow-specific methods, it does not attempt to implement flow for you.

Forward

Forward data flow updates and caches a node's output when itself or its inputs have been changed. It will then trigger its output connections to update, until an end node is reached.

Backward

Backward data flow starts by an end node update request, which will trigger all its inputs to return an output value.

None

A node system doesn't always need a data flow. Sometimes, when building a state machine or similar, a "Current" node reference is sufficient, and instead of getting values back and forth you simply traverse the graph using the connection ports.

Clone this wiki locally