mccoyst / min-game

Automatically exported from code.google.com/p/min-game
MIT License
2 stars 1 forks source link

Each boid doesn't have to think at each frame #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Instead, boids can think ever six frames or so.

Original issue reported on code.google.com by burns.ethan@gmail.com on 29 Dec 2012 at 9:16

GoogleCodeExporter commented 9 years ago
Good idea. Also, you may have though of this: Boids should have something like 
a thinkFrame field, which is determined when the Boid is created (probably 
simply with a global cyclical counter). Basically something that distributes 
the thoughts, rather than all Boids thinking on the same frame.

Original comment by Mcco...@gmail.com on 30 Dec 2012 at 9:43

GoogleCodeExporter commented 9 years ago
Yeah, that was my plan.  A global counter and either grouping the Boids by 
their index mod 5 (or some small constant) or building random groups to make it 
a bit less systematic.

Original comment by burns.ethan@gmail.com on 30 Dec 2012 at 9:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 6a07dce4623c.

Original comment by burns.ethan@gmail.com on 31 Dec 2012 at 4:12