diff --git a/TODO.md b/TODO.md index 69f2c92..e698ea5 100644 --- a/TODO.md +++ b/TODO.md @@ -8,4 +8,5 @@ - sin/cos table? - Make colisions for walls of grid - Add config and cmd arguments when running the binary to adjust simulation settings -- Rewrite `grid.rs` \ No newline at end of file +- Rewrite `grid.rs` + - Move agent list to grid type \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index c5c0e5d..0be4563 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ fn main() { let (width, height) = (1024, 1024); // # of agents - let n_particles = 1 << 26; + let n_particles = 1 << 24; // let n_particles = 1 << 16; println!("n_particles: {}", n_particles); diff --git a/src/model.rs b/src/model.rs index ece595e..c78214d 100644 --- a/src/model.rs +++ b/src/model.rs @@ -270,7 +270,6 @@ impl Model { if self.grids[0].width > 1024 && self.grids[0].height > 1024 && self.img_data_vec.len() > 100 { self.render_all_imgdata(); self.flush_image_data(); - } }