{
 "id": "gpu-particle-systems",
 "title": "GPU particle systems",
 "aliases": [
  "compute particles",
  "GPU-resident particles"
 ],
 "domain": "simulation",
 "subdomain": "particles & VFX",
 "stage": "simulation",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "unity",
  "unreal",
  "godot"
 ],
 "year_introduced": 2004,
 "inputs": [
  "particles",
  "depth"
 ],
 "outputs": [
  "particles"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "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.",
 "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": "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 `sph-fluids` or `unified-particle-physics` when particles need neighbour interaction, which needs a spatial grid pass on top of this. Combine with `curl-noise-flow` for cheap turbulence and `soft-particles` for depth-faded sprites.",
 "cost": {
  "class": "medium",
  "notes": "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"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1145/1058129.1058146",
   "type": "paper",
   "title": "UberFlow",
   "authors": [
    "Peter Kipfer",
    "Mark Segal",
    "Rüdiger Westermann"
   ],
   "year": 2004,
   "venue": "Proceedings of the ACM SIGGRAPH/EUROGRAPHICS conference on Graphics hardware",
   "url": "https://doi.org/10.1145/1058129.1058146",
   "ids": {
    "doi": "10.1145/1058129.1058146"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1058129.1058146",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1058129.1058146",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1058129.1058146",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1058129.1058146",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1058129.1058146",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "kipfer2004uberflow"
  },
  {
   "role": "tutorial",
   "key": "url:https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-23-high-speed-screen-particles",
   "type": "tutorial",
   "title": "GPU Gems 3, Chapter 23: High-Speed, Off-Screen Particles",
   "authors": [
    "Cantlay"
   ],
   "year": null,
   "venue": "developer.nvidia.com",
   "url": "https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-23-high-speed-screen-particles",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261113074900/https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-23-high-speed-screen-particles",
     "timestamp": "20261113074900"
    },
    "page_title": "Chapter 23. High-Speed, Off-Screen Particles",
    "host": "developer.nvidia.com",
    "title_confirmed_by_page": true,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "http",
     "endpoint": "GET https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-23-high-speed-screen-particles → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-23-high-speed-screen-particles → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-23-high-speed-screen-particles → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0.95,
   "__bib": "cantlaygems"
  },
  {
   "role": "implementation",
   "key": "url:https://github.com/mrdoob/three.js/blob/dev/examples/webgl_gpgpu_birds.html",
   "type": "web",
   "title": "three.js GPGPU examples (webgl_gpgpu_birds and particles)",
   "authors": [
    "three.js contributors"
   ],
   "year": null,
   "venue": "github.com",
   "url": "https://github.com/mrdoob/three.js/blob/dev/examples/webgl_gpgpu_birds.html",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": null,
    "page_title": "three.js/examples/webgl_gpgpu_birds.html at dev · mrdoob/three.js",
    "host": "github.com",
    "title_confirmed_by_page": true,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "http",
     "endpoint": "GET https://github.com/mrdoob/three.js/blob/dev/examples/webgl_gpgpu_birds.html → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://github.com/mrdoob/three.js/blob/dev/examples/webgl_gpgpu_birds.html → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://github.com/mrdoob/three.js/blob/dev/examples/webgl_gpgpu_birds.html → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0.75,
   "__bib": "contributorsthreeb"
  },
  {
   "role": "implementation",
   "key": "gh:unity-technologies/graphics",
   "type": "code",
   "title": "Unity-Technologies/Graphics",
   "description": "Unity Graphics - Including Scriptable Render Pipeline",
   "authors": [
    "Unity-Technologies"
   ],
   "year": 2020,
   "venue": "GitHub",
   "url": "https://github.com/Unity-Technologies/Graphics",
   "ids": {
    "repo": "Unity-Technologies/Graphics"
   },
   "license": "NOASSERTION",
   "extra": {
    "stars": 3035,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-25T12:25:55Z",
    "language": "C#",
    "homepage": null,
    "license_name": "Other"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Unity-Technologies/Graphics",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Unity-Technologies/Graphics",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Unity-Technologies/Graphics",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Unity-Technologies/Graphics",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Unity-Technologies/Graphics",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Unity-Technologies/Graphics",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "unitytechnologies2020unity"
  }
 ],
 "presets": [],
 "related": [
  "particle-systems",
  "soft-particles",
  "curl-noise-flow",
  "sph-fluids",
  "unified-particle-physics",
  "gpu-driven-rendering"
 ],
 "extends": [
  "particle-systems"
 ],
 "supersedes": [],
 "combines_with": [
  {
   "id": "curl-noise-flow",
   "why": "The update shader samples a curl field per particle to get turbulence with no neighbour search."
  },
  {
   "id": "soft-particles",
   "why": "Instanced particle quads fade against the depth buffer in the fragment shader."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/simulation/gpu-particle-systems.json"
 },
 "solves": [
  "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"
 ],
 "authority": "Kipfer et al., 2004",
 "url": "https://texelatlas.vercel.app/t/gpu-particle-systems/",
 "execution_fidelity": "none",
 "fidelity_label": "No Live Specimen",
 "benchmark_eligible": false
}