Boids sim hits 50K agents at 50FPS after a simple cache-friendly index sort
neuroecology · x · 2026-09-16
A developer improved the frame rate of their browser-based boids simulator by periodically sorting neighbor indices, fixing poor cache locality from scattered memory access. The result: 50,000 agents running at around 50FPS. A neat reminder that simulation performance is often about memory access patterns, not the algorithm itself.
More from Fun
- Will Stancil leads the charge against AI denialists on Bluesky — rickasaurus · 2026-09-16
- $100 Shopify client sent a ChatGPT-written complaint email at the dev who built her store — CtrlAltDwayne · 2026-09-16
- Digital Fly Brain Playing Chess Sparks 'AI Abuse' Memes on Reddit — Juggernaut_ActuaI · 2026-09-16
- Anthropic slammed for doom talk while keynoting Dreamforce — StewartalsopIII · 2026-09-16
- Star Wars AI Video Parody Hailed as the Funniest AI Creation Yet — DeryaTR_ · 2026-09-16
- "AI Plays Doom" Demo Debunked: Text State Input, Solvable in ~30 Lines of Code — banteg · 2026-09-16