Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chenjd/unity-boids-behavior-on-gpgpu

Boids behavior calculation code is modified to utilize Microsoft Direct Compute resulting significant improvements in Performance. 利用Compute Shader实现Boids模拟。
https://github.com/chenjd/unity-boids-behavior-on-gpgpu

compute-shader shader unity

Last synced: 4 days ago
JSON representation

Boids behavior calculation code is modified to utilize Microsoft Direct Compute resulting significant improvements in Performance. 利用Compute Shader实现Boids模拟。

Awesome Lists containing this project

README

        

# Unity Boids Behavior on GPGPU

![GitHub](https://img.shields.io/github/license/chenjd/Unity-Boids-Behavior-on-GPGPU)
![](https://img.shields.io/badge/platform-win--64-brightgreen)
![Build By Action](https://github.com/chenjd/Unity-Boids-Behavior-on-GPGPU/workflows/Build%20By%20Action/badge.svg)

#### Update
Support Unity 2021+
Add GitHub Action CI/CD pipeline, you can find the latest exe file at Actions page.

#### Description:

Implement Boids simulation using Compute Shader.

Originally inspired by Joachim Ante at [Unite Europe 2017 - C# job system & compiler
](https://www.youtube.com/watch?v=AXUvnk7Jws4&t=317s)
Joachim showed how a boids simulation performance increases when using the new Job system, taking full advantage of the multi CPU/Core architecture

![](http://upload-images.jianshu.io/upload_images/1372105-587750bad15322a0.gif?imageMogr2/auto-orient/strip)

Instead of that,I make the GPU-based flocking system.
Boids behavior calculation code is modified to utilize Microsoft Direct Compute resulting significant improvements in Performance.

![](./Res/boidgif.gif)

#### Platform
Windows

#### Article(Chinese)
[利用GPGPU计算大规模群落仿真行为](http://www.cnblogs.com/murongxiaopifu/p/7308366.html)

#### Ref

[Boids](https://www.red3d.com/cwr/boids/)