Physics

Rigid bodies run on Rapier (WASM, CPU). Boids, fluid, cloth and N-body run entirely on the GPU as TSL compute passes — no per-frame readback.

Boids — 100 000 agents on a GPU spatial hash

Separation, alignment and cohesion evaluated per agent against its 27 neighbouring grid cells. The grid is rebuilt on the GPU every frame (count → prefix sum → scatter); positions never leave the GPU.

Poster: a dense flock of small arrows streaming through a dark volume

Reduced motion is on — showing the poster instead of the live scene.

100,000 agents on TSL compute.