Open jalberse opened 1 year ago
Right now we iterate the pool to find the first not-in-use particle. This is really inefficient, we should implement a free list. This will probably allow the CPU bound particle simulation to have many more particles active.
Instead of rolling my own particle pool, we might want to use a crate: https://docs.rs/pool/latest/pool/struct.Pool.html
Or maybe: https://github.com/CJP10/object-pool
Right now we iterate the pool to find the first not-in-use particle. This is really inefficient, we should implement a free list. This will probably allow the CPU bound particle simulation to have many more particles active.