grid: avoid clone of buffer
This commit is contained in:
parent
8d54fa1eb1
commit
9881502002
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user