fredrikm / SoCSProject16

MIT License
1 stars 0 forks source link

Simulation speed is very slow #52

Closed reinthal closed 8 years ago

reinthal commented 8 years ago

Evaluating the particles takes as a long time. 600 time steps is evaluated in 129 seconds

here is a screenshot elapsed time

fredrikm commented 8 years ago

We might be able to distribute the neighbour calculation over several timesteps (for ex. odd fish idx on odd timestep, even idx on even timesteps), but care must be taken when removing fishes so the neighbourlists doesn't contain invalid references.

reinthal commented 8 years ago

This bug resolved when shark started killing off the fish.