Thus spake Joel Uckelman:
> Thus spake zhavier:
> > I gave it about 30 minutes.
> >
> > Its not a super important feature for these pieces to have the non
> > rectangular aspect, as it is quite playable as is, but here is the mod.
> >
> >
http://www.vassalengine.org/wiki/Module ... on_Explore[1]
> >
> > The dungeon tile deck, i want those 5 pieces to have the non rectangular
> > trait.
> >
> > I have heard that java limits its memory usage through a system
> > variable. I thought that perhaps vassal was hitting the ceiling due to
> > the large size of the tiles. Perhaps I would need to increase the
> > system variable for java memory? Let's get dangerous....
>
> I can reproduce this, and will investigate further. It appears to be a
> bug.
The problem is in NonRectangular.setShapFromImage(). We're extracting
the shape of the opaque area from the transparency mask by finding each
pixel which is not totally transparent, creating a 1x1
java.awt.geom.Area corresponding to it, and then unioning those to
another Area in which eventually becomes the shape. The problem with
this is that unioning Areas is hideously slow, and for a 1500x1500
image, you have to do this 2.25 million times. Even worse, this is not
done on a background thread, so it locks up the GUI while you wait for
it to complete.
This is Bug 4258 in our tracker:
http://www.vassalengine.org/tracker/sho ... gi?id=4258--
J.