QuadtreeSprite is a Starling extensions which enables efficient handling of large number of children DisplayObjects. It is useful when the game needs a container of objects which are usually not visible on the screen at the same time, such as large 2D world map.

The extension allows the addition and removal of objects in the same and usual Starling way, however the container must be updated every time one of its children change position or size. It’s possible to iterate through the currently visible objects or all of which the container holds.