I need to quickly set all pixels in a circle (x0,y0,r) to solid or empty on a big, per-pixel map. Like in worms or liero game when you blow up terrain with a bomb.
I considered quad tree and simple 2d array, but quad tree seems bad for adding/removing circles, and simple 2d array takes up a lot of memory for big maps
Is there some better algorithm that could make this fast and small?