On Wed, Nov 17, 2021 at 02:32:25AM +0100, Pere Pujal i Carabantes wrote:
<snip>
> I tested in Linux and Android, I will need some more time to compile and test in Windows:
>
> Linux performs fine even with Tux Paint running a window of 4000x3000
>
> For Android things are different:
> cnt=20000 seems too much for my phone(lineage cm 14.1 AKA Android 7)
> and it still crashes,
> I had to low it to 2000 to not crash, it crashes still at 3000
>
> Off course, with a too low recursivity allowed, the fill tool doesn't
> perform fine and stops filling far before the limits of the area.
I'm beginning work to remove the recursion, and implement
span filling as described over at
https://en.wikipedia.org/wiki/Flood_fill#Span_Filling
I need to get to bed, though, so it's all #ifdef'd out
at the moment...
-bill!
|