grid: avoid clone of buffer

This commit is contained in:
2025-03-27 14:19:01 -04:00
parent 8d54fa1eb1
commit 9881502002

View File

@@ -139,11 +139,9 @@ impl Grid {
..
} = self.config;
let buf = self.buf.clone();
self.agents.par_iter_mut().for_each(|agent| {
agent.tick(
&buf,
&self.buf,
sensor_distance,
sensor_angle,
rotation_angle,