/rusticle_sim

Particle simulation made in Rust.

Primary LanguageRust

Rusticle Simulator

Just a simple Particle Life simulation made in Rust.

I made this project after I got inspired by this great video by Tom Mohr.

This was mostly a quick experiment so the code definitely won't be in a perfect shape.

Main goals of this project:

  • Interesting simulations:
    • Particle wrapping
    • High particle count
  • Optimization:
    • World partitioning
    • Partially multithreaded (thanks to rayon crate)
    • Instanced rendering
  • Customizability:
    • Runtime customizable settings
    • Setting presets save/load system
  • Possibly more to come later!

Performance

10000 particles simulated at about 2ms / frame on Intel i5-12600K (16 threads)

How to run?

Simply use the run command in the crate's directory. Don't forget about the --release flag, otherwise the performance will be much worse.

cargo run --release

Showcase: