GPU particle systems
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.
Also known as compute particles, GPU-resident particles
In the family Simulation & animation, particles & VFX
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | Core has no built-in GPU particle system; custom systems use GPUComputationRenderer or WebGPU TSL compute. |
| Babylon.js 9.38.0 | Built in | new BABYLON.GPUParticleSystem(name, { capacity }, scene) docs |
| Godot 4.7 | Built in | Add a GPUParticles3D node with a ParticleProcessMaterial docs |
| Unity | Official add-on | Visual Effect Graph asset on a Visual Effect component (compute-driven particles) docs Requires the Visual Effect Graph package. |
| Unreal 5.7 | Built in | Niagara Emitter > Sim Target = GPUCompute Sim docs |
| Blender 5.2 | None found | Particles are CPU; Geometry Nodes are an alternative. |
| WebGPU W3C | None found | |
| Metal | None found |
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 choose it
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
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 for the plain model and for small counts where CPU authoring and callbacks are easier. Prefer Smoothed Particle Hydrodynamics (fluids) or Unified particle physics when particles need neighbour interaction, which needs a spatial grid pass on top of this. Combine with Curl noise for procedural fluid motion for cheap turbulence and Soft particles (depth-fade billboards) for depth-faded sprites.
Field marks
- 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
Lineage
Crosses
- Curl noise for procedural fluid motion: The update shader samples a curl field per particle to get turbulence with no neighbour search.
- Soft particles (depth-fade billboards): Instanced particle quads fade against the depth buffer in the fragment shader.
Sources
- primaryPeter Kipfer, Mark Segal, Rüdiger Westermann (2004). UberFlow. Proceedings of the ACM SIGGRAPH/EUROGRAPHICS conference on Graphics hardware.Verified via crossref · 2026-11-29doi:10.1145/1058129.1058146
- tutorialCantlay. GPU Gems 3, Chapter 23: High-Speed, Off-Screen Particles. developer.nvidia.com.Verified via live page · 2026-11-29
- implementationthree.js contributors. three.js GPGPU examples (webgl_gpgpu_birds and particles). github.com.Verified via live page · 2026-11-29
- implementationUnity-Technologies (2020). Unity-Technologies/Graphics. Unity Graphics - Including Scriptable Render PipelineGitHub API · license NOASSERTION · 2026-11-29