SuboptimalEng/slime-sim-webgpu: 🦠 Slime mold simulation with WebGPU and TypeScript.
January 5, 2025

SuboptimalEng/slime-sim-webgpu: 🦠 Slime mold simulation with WebGPU and TypeScript.

I made this slime mold simulation to learn more about WebGPUs and compute shaders. It’s essentially a recreation of Sebastian Lague’s coding adventure (albeit with fewer features).

This is a 45 second demo
twitter,
Number of execution threadsand
r/graphicsprogramming. You can also try the playable demo on my website (linked in the “About” section of this repository). Please note that WebGPU does not work on all devices, so you may see an error screen.

If you like a more in depth video you can check out this 5-minute development log on YouTube In it I show an extended demo and answer the following questions:

# Setup Guide (for everyone).
git clone https://github.com/SuboptimalEng/slime-sim-webgpu.git
cd slime-sim-webgpu
npm install
npm run dev

# How to Deploy to GitHub Pages (mainly for me).
# First, go to main.tsx file and enable StrictMode.
npm run build
npm run deploy
# Disable StrictMode before running locally and pushing to GitHub.

2025-01-02 16:37:38

Leave a Reply

Your email address will not be published. Required fields are marked *