zoom and rotate

No, I let it go for now. Is 4495x3141 large?

  • M.

On 14/03/2008, Joel Uckelman <uckelman@nomic.net (uckelman@nomic.net)> wrote:


Michael Kiefte, Ph.D.
Associate Professor
School of Human Communication Disorders
Dalhousie University
Halifax, Nova Scotia, Canada
tel: +1 902 494 5150
fax: +1 902 494 5151

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

I’d guess that it’s not more than one standard deviation above
of the mean, so we should try to fix this.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Do you want a copy of the module?

  • M.

On 14/03/2008, Joel Uckelman <uckelman@nomic.net (uckelman@nomic.net)> wrote:

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

Yeah, sure.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

I profiled an attempt to save a snapshot of the Hube’s Pocket module
zoomed out to 66% IIRC, and discovered that 92% of the time spent
by our ImageSaver.writeImage() is in javax.imageio.ImageIO.write().

Hypotheses:

  1. We’re doing something stupid.

  2. ImageIO is a steaming pile of crap.

I suspect that we’ll find one of these two is the case, because I just
can’t see how it should take so long to write out an image.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake Joel Uckelman:

I think I have evidence supporting #1 now. :slight_smile:

The performance is much more reasonable (a few seconds for a 4000x1000
image) if we create a BufferedImage to write to, and then don’t try
to tell ImageIO that it’s a RenderedImage instead.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Well that’s good news. I suspect you found it a whole lot faster than I would have.

  • M.

On 14/03/2008, Joel Uckelman <uckelman@nomic.net (uckelman@nomic.net)> wrote:

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

ImageSaver. A component barely alive. Gentlemen, we can rebuild it. We
have the technology… Better, stronger, faster.

svn3323 contains an ImageSaver which takes snapshots in the background
so it doesn’t block GUI repainting, displays a progress dialog with
a cancel button, and automatically determines an appropriate tile size
for very large maps.

nomic.net/~uckelman/tmp/vassal/


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Works beautifully. That is exactly the way it should work. Thanks Joel.

  • M.

On 16/03/2008, Joel Uckelman <uckelman@nomic.net (uckelman@nomic.net)> wrote:

Post generated using Mail2Forum (mail2forum.com)

Bravo!

rk

Post generated using Mail2Forum (mail2forum.com)