Docs / Fabric simulation

Glossary: FabricEffect.SpatialHashOverflow

The members of FabricEffect.SpatialHashOverflow, in alphabetical order.

Color legend plain property

What self-collision lost to full buckets of the spatial hash and full lists of partners: contacts the solver never saw.

A read-only record struct nested in FabricEffect, compared by value, returned by SampleSpatialHashOverflow. Its constructor takes DroppedEntriesPerStep and PeakOccupancy, in that order; the other two are set by initializer. All four read 0 while nothing is lost, the usual case: only a deep, crushed pile fills a bucket or a list. The diagnostics page shows it in context, with code.

Names are colored by what they are: a property; values and fields keep the plain color.

Properties

DroppedCandidatesPerStep →

float · Init-only. Partners a full list left out, per step, over the steps since the last sample: contacts that step never solved. A point keeps at most ContactCandidateCapacity partners a step.

DroppedEntriesPerStep →

float · Read-only. Points the spatial hash couldn’t file because their bucket was full, per step, over the steps since the last sample. Each one is a contact never seen for that step, by the solver or by anything that reads its buckets.

PeakCandidates →

int · Init-only. The longest list of partners any point wanted since the sheet was uploaded: what ContactCandidateCapacity would need to be. 0 until a list overflows.

PeakOccupancy →

int · Read-only. The deepest bucket since the sheet was uploaded: what SpatialHashMaxPerCell would need to be. 0 until a bucket overflows.