grid: avoid clone of buffer

This commit is contained in:
Simon Gardling 2025-03-27 14:19:01 -04:00
parent 8d54fa1eb1
commit 9881502002
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

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