Fixed issues. Gonna try adding camera windows so I can take advantage of the performance gains this will bring.
A quadtree is a spatial partitioning data structure that recursively divides a 2D area into four smaller quadrants to organize objects efficiently. When a region contains too many objects, it is split into four sections, and the process repeats for crowded areas. This reduces unnecessary comparisons and speeds up operations like collision detection, range searching, and rendering in games, maps, and simulations.