0 Members and 3 Guests are viewing this topic.
Hmm, so your flood fill algorithm just traces around the edge of the region until it is all filled? Nice...I am curious, will it work properly if you have a setup like an hourglass but at the middle (where it is narrow) you have 1 empty pixel with a black pixel on either side?EDIT: Ah, I see the screenies, now >.>
In those screenshots, the screen is being updated 4-5 times per frame, so the program is spending most of the time updating the screen. Also, I haven't even started optimizing the code, and I have some ideas for how to optimize the algorithm. In fact, filling a blank screen from the center without updating the screen currently takes only 10 seconds (That's 24x faster than the screenshot ).Edit: Updating every 256'th frame looks like this: