Renderer · const
MAX_DISTANCE_FIELDS
How many placed fields one frame may declare.
Explained in Hello world.
const MAX_DISTANCE_FIELDS = 32import { MAX_DISTANCE_FIELDS } from '@driftengine/core';In depth
Thirty-two, which is what composeGlobalField was measured against — 707 ms on the CPU for
thirty-two instances over four cascades, and the number the device composition has carried since.
The cost is not in the count itself but in the instance buffer being sized once and bound for
every cascade's dispatch, so it is a cap rather than a growth.