Real-time bacterial evolution simulator running up to 1 million organisms on the GPU.
- WebGPU compute passes (move/consume/stress/reproduce/compact) run entirely on GPU
- Each bacterium carries a 16-gene genome encoding speed, resistance, metabolism, reproduction
- Mutation, selection, and drift verified against Wright-Fisher theory and Hardy-Weinberg equilibrium
Sim loop (rAF) → Scheduler → GPU passes → BacteriaBuffers (ping-pong)
↘ PetriRenderer (WebGPU point renderer)
Zustand store ← stats collector ← phylogeny tracker
npm install
npm run dev # Vite dev server
npm run test:unit # Vitest unit + analytical tests
npm run test:shader # Playwright e2eReact 18 · TypeScript · Vite · WebGPU · Zustand · D3 · Vitest · Playwright