Closed hjpvandijk closed 5 days ago
Idea: If all subnodes have the same occupancy, make the parent node have that occupancy. Then you don't have to check subnodes if they are the same. If the subnodes don't have the same occupancy, put ANY
Also look into optimizing the quadtree exchange
Currently the simulator will run slower and slower the more cells are in the quadtree. Presumably due to looping through the cells to find neighbors, occupied, unoccupied cells etc. Think about how to optimize this.