---
id: "gpu-particle-systems"
title: "GPU particle systems"
aliases: [compute particles, GPU-resident particles]
domain: "simulation"
stage: "simulation"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, unity, unreal, godot]
year_introduced: 2004
inputs: [particles, depth]
outputs: [particles]
style: "both"
dynamic: "dynamic"
cost: "medium"
authority: "Kipfer et al., 2004"
url: "https://texelatlas.vercel.app/t/gpu-particle-systems/"
sources_verified_at: "2026-11-29"
---
# GPU particle systems (Kipfer et al., 2004)

> Keep particle state in GPU buffers or textures and run spawn, update, collision and sort on the GPU so millions of particles cost no CPU time or bus traffic.

## Reach for it when

- cpu particle update is too slow past a few thousand sprites
- want a million particles that bounce off scene depth
- particle buffers stall pipeline from cpu to gpu uploads
- need compute shader spawning and recycling of effect particles

## How it works

State such as position, velocity, age and seed lives in float textures (ping-pong render targets in WebGL2) or storage buffers (compute shaders in WebGPU and desktop APIs). Each frame an update pass reads the previous state and writes the next: apply forces, integrate, kill expired particles. Dead slots are tracked in a free list; on compute hardware an atomic counter and an append/consume buffer let emitters claim slots without CPU readback, and an indirect draw call consumes the live count. Collision with the scene is done against the depth buffer or a signed distance field by reflecting velocity at the first penetration. Rendering instances a quad per particle with positions fetched in the vertex stage. Sorting for alpha blending uses a GPU radix or bitonic sort on view depth, and is skipped for additive effects.

## When to use it

Choose it when particle counts reach tens of thousands and above, or when particles must react to scene depth or a field the GPU already owns. Prefer [Particle systems](https://texelatlas.vercel.app/t/particle-systems.md) for the plain model and for small counts where CPU authoring and callbacks are easier. Prefer [Smoothed Particle Hydrodynamics (fluids)](https://texelatlas.vercel.app/t/sph-fluids.md) or [Unified particle physics](https://texelatlas.vercel.app/t/unified-particle-physics.md) when particles need neighbour interaction, which needs a spatial grid pass on top of this. Combine with [Curl noise for procedural fluid motion](https://texelatlas.vercel.app/t/curl-noise-flow.md) for cheap turbulence and [Soft particles (depth-fade billboards)](https://texelatlas.vercel.app/t/soft-particles.md) for depth-faded sprites.

## Cost

medium — Update is cheap; sort and overdraw dominate. Cost scales with particle count and sprite coverage.

## Failure modes

- Unbounded slot allocation when the free list runs dry makes new emitters silently drop particles
- Depth-buffer collision only sees visible surfaces, so particles leak behind occluders and through thin walls
- Texture-based state in WebGL2 loses precision with half floats, causing visible drift or snapping
- Readback of the live count stalls the pipeline; it must stay on the GPU via indirect draw
- Per-frame sort cost can exceed the simulation cost for translucent effects

## Engine support

- babylonjs: builtin — `new BABYLON.GPUParticleSystem(name, { capacity }, scene)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Particles/gpuParticleSystem.pure.ts, checked 2026-12-01)
- godot: builtin — `Add a GPUParticles3D node with a ParticleProcessMaterial` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/doc/classes/GPUParticles3D.xml, checked 2026-12-01)
- unity: official — `Visual Effect Graph asset on a Visual Effect component (compute-driven particles)` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.visualeffectgraph/Documentation~/System-Requirements.md, checked 2026-12-01) — Requires the Visual Effect Graph package.
- unreal: builtin — `Niagara Emitter > Sim Target = GPUCompute Sim` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/overview-of-niagara-effects-for-unreal-engine, checked 2026-12-01)

## Dataflow

- Inputs: particles, depth
- Outputs: particles
- Platforms: webgl2, webgpu, desktop-gpu, unity, unreal, godot

## Lineage

- extends [Particle systems](https://texelatlas.vercel.app/t/particle-systems.md)

## Combines with

- [Curl noise for procedural fluid motion](https://texelatlas.vercel.app/t/curl-noise-flow.md): The update shader samples a curl field per particle to get turbulence with no neighbour search.
- [Soft particles (depth-fade billboards)](https://texelatlas.vercel.app/t/soft-particles.md): Instanced particle quads fade against the depth buffer in the fragment shader.

## Sources

1. [primary] Peter Kipfer, Mark Segal, Rüdiger Westermann (2004) UberFlow. Proceedings of the ACM SIGGRAPH/EUROGRAPHICS conference on Graphics hardware. https://doi.org/10.1145/1058129.1058146 (verified via crossref on 2026-11-29)
2. [tutorial] Cantlay GPU Gems 3, Chapter 23: High-Speed, Off-Screen Particles. developer.nvidia.com. https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-23-high-speed-screen-particles (verified via http on 2026-11-29)
3. [implementation] three.js contributors three.js GPGPU examples (webgl_gpgpu_birds and particles). github.com. https://github.com/mrdoob/three.js/blob/dev/examples/webgl_gpgpu_birds.html (verified via http on 2026-11-29)
4. [implementation] Unity-Technologies (2020) Unity-Technologies/Graphics. https://github.com/Unity-Technologies/Graphics License: NOASSERTION. (verified via github on 2026-11-29)

## Cite this entry

Texel. "GPU particle systems." https://texelatlas.vercel.app/t/gpu-particle-systems/ (accessed 2026-12-01).
