Skip to content

Repository files navigation

Evolution

Real-time bacterial evolution simulator running up to 1 million organisms on the GPU.

What makes it interesting

  • 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

Architecture

Sim loop (rAF) → Scheduler → GPU passes → BacteriaBuffers (ping-pong)
                                        ↘ PetriRenderer (WebGPU point renderer)
Zustand store ← stats collector ← phylogeny tracker

Quick start

npm install
npm run dev          # Vite dev server
npm run test:unit    # Vitest unit + analytical tests
npm run test:shader  # Playwright e2e

Stack

React 18 · TypeScript · Vite · WebGPU · Zustand · D3 · Vitest · Playwright

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages