| Crates.io | boids |
| lib.rs | boids |
| version | 0.1.0 |
| created_at | 2021-09-03 18:13:47.307006+00 |
| updated_at | 2021-09-03 18:13:47.307006+00 |
| description | A fast boids library for Rust |
| homepage | https://github.com/ewpratten/boids-rs |
| repository | https://github.com/ewpratten/boids-rs |
| max_upload_size | |
| id | 446573 |
| size | 602,017 |
The boids crate is a reasonably fast implementation of the Boids algorithm. If you have speed improvements, please submit a pull request!
When compiled with the rayon feature enabled, the library will use the rayon crate to parallelize the computation. This may or may not be something you want to do, depending on your application.
| Boid count | Single-thread Time | Parallel Time |
|---|---|---|
| 100 | 7.3ms | 3.5ms |
| 1000 | 414ms | 42.5ms |
| 10000 | ??? | 3.4s |
rayon: Enable parallel processingserde: Enable serde support for all typespuffin: Enable support for the puffin profiler
puffin_viewer requires the packages libgtk-3-dev libatk1.0-dev libsdl-pango-dev libcairo2-devYou can run the demo app with
cargo run --example showcase --features rayon
