Splats · function

defaultSplatBudget

The budget to hand SplatSorter when the consumer has no number of its own.

Explained in Gaussian splats.

function defaultSplatBudget(rendererName?: string): number
import { defaultSplatBudget } from '@driftengine/splats';

Parameters

ParameterTypeDescription
rendererName?string

In depth

Takes the renderer's own name — renderer.rendererName, which every backend answers — rather than reaching for an adapter itself, because AGENTS.md's rule is that a package takes a platform capability as a parameter and never queries one.

An unknown part is not weak, which is isWeakGpuFamily's own decision and the reason it is reused rather than re-tabulated here: a device table is wrong about every GPU nobody has tested, and guessing weak on the unknown thins a capture for every part released after this line.