I am creating and destroying a lot of agents during my simulation. They are all
attached to a SparseGrid2D. For some reason when I stop, with the stopper an
agent, the reference between the agent and the grid remain active. This leads to
an increase in the memory use and to a progressive slowdown of the simulation.
If I periodically reset the sparseGrid2D containing all the agents this remove all
the references and free memory space. Is this the only solution to this problem?