ZOYKUHot Board

jtsorlinis/boidsunity기술 문서

jtsorlinis/boidsunity documentation on GitHub Hot

목차 (TOC) (1개 섹션)▾
언어 대체 안내:해당 저장소의 한국어 문서가 제공되지 않아 공식 영문 원본(English)으로 표시됩니다.
빠른 설치
git clone https://github.com/jtsorlinis/boidsunity.git

2D/3D Boids Flocking Simulation (CPU/GPU)

See it in action here: Boids

Native builds of the latest commit: Windows · macOS · Linux (the macOS app isn't notarized, so allow it under System Settings > Privacy & Security on first launch)


I wanted to learn about GPGPU and Compute shaders so ended up making a boid flocking simulation in unity.

I first made it in 2D on the CPU, then using Burst/Jobs, and eventually moved everything to the GPU, which brought an insane performance increase.

The simulation uses a uniform spatial grid as an acceleration structure to determine nearest neighbours, as brute force method would cap out at around 50k entities even on GPU.

Method used is inspired by this presentation: https://on-demand.gputechconf.com/gtc/2014/presentations/S4117-fast-fixed-radius-nearest-neighbor-gpu.pdf

3D: 16,776,960 boids on the GPU

2D: 67,107,840 boids on the GPU

GitHub 공식 원본 저장소에서 아카이브된 문서 미러 · GitHub 저장소 방문
동기화 기준일: 2026-11-11