OK I start with a blank map, which is 512x512 = 262144 pixels/locations.
I need a way to efficiently draw some objects on it, and then be able to find the areas of free space, so that later more different objects can be added to these free areas. I cant figure out the best way to store this data, or algorithms to find the free areas.
I had a working solution, but it took forever to compute. I'm working with AS3, in case that impacts what would be the best solution.
Any Advice? thanks.