Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ghemyn/rusticle_sim

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusticle Simulator

Simple Particle Life simulation made in Rust. Showcases visually compelling emergent behavior. Maybe life is a only set of rules anyway...

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

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:

About

Particle Life simulation made in Rust, exploring how simple rules can produce complex, emergent behavior.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.