Figure: Diagnostic workflow: Estimate peak live count → Capacity and buffers → Measure particles and memory
Figure: Diagnostic workflow: Estimate peak live count → Capacity and buffers → Measure particles and memory

Cause and mechanism

Capacity is the maximum number of particles a VFX Graph system can hold. GPU memory depends on that limit, stored particle attributes, extra buffers such as sorting data, and the number of effect instances, even when few particles are visible. Test those factors individually rather than relying on a universal attributes × Capacity × 2 formula.

Check and correct the setup

  1. Estimate steady-state particles from rate × lifetime, then include bursts and concurrent spawns.
    Schematic: measure usage for the actual formats and device
    Schematic: measure usage for the actual formats and device
  2. Tune capacity, stored attributes, and instance count for the peak workload.
    Schematic: measure usage for the actual formats and device
    Schematic: measure usage for the actual formats and device
  3. Measure device memory and GPU time. Lower spawn rates do not necessarily shrink preallocated capacity buffers.
    Schematic: measure usage for the actual formats and device
    Schematic: measure usage for the actual formats and device

Limits and verification

A margin such as 1.2× is a design heuristic. Check device support and particle loss at the heaviest expected peak.

A focused diagnostic setup

Compare one, several and peak simultaneous graph instances, recording capacity separately from live count and retained resources after stopping.

Test in this order

  1. Estimate peak population from rates, lifetimes, bursts and child events.
    Schematic: measure usage for the actual formats and device
    Schematic: measure usage for the actual formats and device
  2. Vary capacity and instance count independently and observe memory changes.
    Schematic: measure usage for the actual formats and device
    Schematic: measure usage for the actual formats and device
  3. Test stop, reuse, destruction and scene re-entry to separate intentional retention from unbounded growth.
    Schematic: measure usage for the actual formats and device
    Schematic: measure usage for the actual formats and device

Interpret the result

Unchanged allocation after lowering rate suggests capacity/auxiliary storage. Avoid solving OOM by silently losing required peak particles; verify appearance and worst-case load together.

Related explanations

References