splatsPerInstance constant

int const splatsPerInstance

Number of Gaussian splats to draw per instanced batch.

Batches 128 splats per draw call to improve vertex shader occupancy and reduce overhead. Grouping multiple splats into a single instanced mesh means the vertex shader runs only once per batch for operations common across splats (e.g. base index lookup), and the hardware can process more vertices per invocation.

Implementation

static const int splatsPerInstance = 128;