Skip to content

RenderingOptions.MaxParticlesPerFrame Property

Definition

Namespace: Brine2D.Rendering

Gets or sets the maximum number of particles that can be rendered per frame using hardware instancing. Each particle occupies one 48-byte instance record in the GPU buffer. Memory cost is approximately MaxParticlesPerFrame × 48 × 4 bytes \(1 instance buffer \+ 3 transfer buffers in\-flight\). The default of 20,000 uses ~3.8 MB total. Particles beyond this limit per emitter flush are silently dropped for that frame.

C#
public int MaxParticlesPerFrame { get; set; }

Property Value

System.Int32