Skip to content

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Snowflakes

This project is part of my boredum in quarantine, so I have to learn something new (Rust language) and then implement it with something fun!

Ikr, nothing fancy here. My first attempt with Rust tho.

How to

build

cargo build --release

run

cargo run --release

Considering to use release mode.

Notes

If somebody or myself in the future wondering why I wrote this code:

pubstructSnowflakes{capacity:usize,radius:Vec<f64>,velocity:Vec<f64>,x:Vec<f64>,y:Vec<f64>,}pubstructSnowflake{pubid:usize,pubradius:f64,pubvelocity:f64,pubx:f64,puby:f64,}

here is my explanation, first the struct Snowflakes is implement the SoA pattern. I'm not sure if it will perform well on heap allocation (those vectors). I want to use something like FixedSizeArray in the future if it's finally arrive as the stable features.

Lastly, the struct Snowflake is just a template for me to manipulate the data that I got from Snowflakes to more specific.

About

Graphic rendering using Piston and Glutin written in pure Rust

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages