Boids – beautiful simulation of natural followers using an old algorithm

Spread the love
12 / 100
Reading Time: < 1 minute

Boids – a log of Learning Java EE 7 / 8

Photo 1539545555026 Ea9418026ac4?ixlib=rb 1.2
Photo by Salmen Bejaoui on Unsplash

Plan multithreading for the boid calculation

  • definition of “one round”
  • parallelism explained
  • shadow values (a copy of locations before calculation)
  • using shadow values the execution (order of picking a boid) from mesh does not matter
  • shadow buffer makes the calculations virtually as if they were done in “natural way”: all at once
  • opposite of using shadow buffer would be calculating the boids updates serially; thus the fresh-in, inter-round position of a boid would be used for all other members’ calculations; thus ordering of calculation would have an effect on the resulting positions (a externally introduced flaw, sort of order bias)
Facebook Comments Box

This site uses Akismet to reduce spam. Learn how your comment data is processed.