# VFX Graph: Buffer overflow detected in particle system

- **ID:** `unity/vfx-graph-buffer-overflow`
- **Domain:** unity
- **Category:** resource_error
- **Error Code:** `VFX-001`
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The particle system in VFX Graph exceeds the allocated buffer capacity due to excessive particle count or lifetime.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Unity 2022.3 | active | — | — |
| Unity 2023.1 | active | — | — |
| Unity 2023.2 | active | — | — |

## Workarounds

1. **Reduce the spawn rate or particle lifetime in the VFX Graph. For example, set 'Spawn Rate' to 50 particles per second and 'Lifetime' to 2 seconds.** (75% success)
   ```
   Reduce the spawn rate or particle lifetime in the VFX Graph. For example, set 'Spawn Rate' to 50 particles per second and 'Lifetime' to 2 seconds.
   ```
2. **Enable 'Capacity' auto-resize or increase buffer capacity in the VFX Graph asset settings under 'Particle' > 'Capacity'.** (85% success)
   ```
   Enable 'Capacity' auto-resize or increase buffer capacity in the VFX Graph asset settings under 'Particle' > 'Capacity'.
   ```

## Dead Ends

- **Increase the 'Max Particles' property in the VFX Graph inspector to a very high value.** — Simply increasing max particles without optimizing spawn rates or lifetime can still cause overflow if the system is poorly designed. (40% fail)
- **Disable all VFX Graph components in the scene to see if the error disappears.** — This only masks the issue; the root cause (buffer overflow) remains and may reappear when VFX is re-enabled. (60% fail)
