What it does
Keep the same terrain while avoiding repeated work at positions you have just read. A cache is useful when several branches ask for the same density at exactly the same place.
Put the shared density into Input, then use Output in those branches. Try this around a costly shape that is read repeatedly; a field read only once at each position has little to gain.
Inputs and outputs
| Name | Type | Default | What it changes |
|---|---|---|---|
| Inputs | |||
| Input | Density | The density to remember at recently read positions. | |
| Capacity | Integer | required · 1–64 | Higher values remember more recent positions. |
| Output | |||
| Output | Density | The exact input values, with no smoothing or change of shape. | |
Good to know
Follow the shared wires
Place the cache before the branches separate. Moving or warping coordinates can make those branches read different positions and miss the cache.