Thus spake “bsmith”:
Fixed:
nomic.net/~uckelman/tmp/vass … vn2825.zip
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
Thus spake “bsmith”:
Fixed:
nomic.net/~uckelman/tmp/vass … vn2825.zip
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
Looks much better, good work. That’s the good news.
The bad news is my greyscale jpgs in the Charts & Tables window do not display, this may be a problem which has been around for a while with your builds though, it has not just appeared in the latest build.
Thus spake “bsmith”:
Are they in the in the version of the module at the mediafire link
right now? They weren’t present in the version I downloaded.
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
No, I stripped everything out other than the map so that the download was small. I’ve got the full module up on Mediafire, only problem is their service seems to be down at the moment.
Here’s the link for when it comes back up:
http://www.mediafire.com/?sharekey=aee67083e6162f8291b20cc0d07ba4d259d8e8a1358fbc04
Thus spake “bsmith”:
It seems to still be down. Could you send me one of the charts by itself?
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
This should do it.
Thus spake “bsmith”:
No chart???
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
Joel this may not be something you want to hear but we may still need an option to turn off the tiling, unless your coding has progressed to the point where that’s not possible.
At this stage, it appears much quicker to play Case Blue with 3.0.15 and -Xmx1300M. I’m getting 10 second loads with 3.0.15 and 40+ second loads with the new version, and that’s conservative because if you scroll under the new one it needs to reload new tiles, even with -Xmx1300M set. So unfortunately, we may need to set tiling as default but add an option to turn it off. Unless of course you have ideas!
Before you download my module from Mediafire, let me upload version 0.15 as that’s the one I’m testing with (I’ve changed the zoom levels). When you get it, kick off scenario 7.12: Uranus & Mars to compare to the figures I’ve given you. Obviously as it loads it zooms the the default zoom level which will slow it down too; but it’s a good test.
Check my last e-mail again, attachment is there Joel.
Post generated using Mail2Forum (mail2forum.com)
Thus spake “bsmith”:
I only see 0.13 there. 7.2 loads in about 12 seconds for me.
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
OK, version 0.15 is up for download now Joel.
Thus spake “bsmith”:
When you load the Case Blue map, it looks like what you’re waiting for
is the tiles—which is true, so far as it goes. The tiles in turn are
waiting for the map image to load, which is what takes most of the time.
(You can see this by comparing how long you wait for the first tile
belonging to a particular image to be painted with how long after that
you wait for the remaining tiles from that image to be painted.)
So, turning off tiling would not help much (and you’d pay for it every
time you wanted to zoom, which I expect could be often with a map this
size). What will make loading faster is turning off memory-mapped images,
but only in the case where you really do have enough RAM for it.
Maybe the setting we should have is whether to prefer RAM or memory-mapped
files when loading large images. I say “prefer” because even when the user
wants the images to go to RAM it might not be possible, and so it would
be better to try a memory-mapped file (which will almost certainly work)
than throw an OutOfMemoryException.
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
Thus spake “bsmith”:
Try this build:
nomic.net/~uckelman/tmp/vass … vn2838.zip
Under the “General” tab in the prefs, you’ll find a check box labeled
“Prefer memory-mapped files for large images?” If checked, then VASSAL
tries storing map images which would have a Raster larger than 4MB in
a memory-mapped file first, and falls back to storing them in RAM if
that fails. If unchedked, you get the reverse: RAM is tried first, and
then a memory-mapped file if there’s insufficient space in RAM.
I had to write some awfully gnarly code to get this to work at all,
and anyway I’m not confident that it actually does work in all cases.
Additionaly, if you turn off memory-mapped images, you should be sure
that you actually are giving VASSAL enough RAM to handle the images
you’re trying to load. If you haven’t, you’ll end up with an endless
cycle of image loading followed by the cache being cleared.
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
Thus spake Joel Uckelman:
Don’t bother with 2838. Try 2839 instead:
nomic.net/~uckelman/tmp/vass … vn2839.zip
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
On to 2844:
nomic.net/~uckelman/tmp/vass … vn2844.zip
The preference for selecting the type of scaling works again.
Please let me know whether I’ve resolved all of the problems pointed out so far.
I’d like to go to 3.1.0-beta1 as soon as there are no more outstanding problems.
Last build of the night:
nomic.net/~uckelman/tmp/vass … vn2848.zip
Now that we have things happening in the background, it’s possible for
multiple exceptions to occur simultaneously and spam the user with error
dialogs. This is unpleasant on a UNIX box—you can stop a cascade of
error dialogs if you keep trying to get focus back to your terminal and
hammer on Ctrl+C. This is potentially crippling on a Windows box, since
you’re probably not running from a terminal and it may even prevent you
from bringing up the Task Manager with a three-finger salute (that’s
what happened to my friend Nate on Saturday).
I changed the path to the error dialog so that a background Thread
consumes error messages from a BlockingQueue one at a time, and won’t
put up another error dialog until the existing one is cleared.
Ok, that’s enough for one day. I hope this is the last major problem
before we put out a beta.
The zoom seems to not be centering after you’ve zoomed out Joel, this seems to happen near a map edge. The window tends to jump to show an area near the top-left.
I’ll do some performance comparisons a little later.
Thus spake “bsmith”:
The zoom seems to not be centering after you’ve zoomed out Joel, this seems t
o happen near a map edge. The window tends to jump to show an area near the
top-left.
If you’re too near an edge, it isn’t always possible to keep the same
center. Check this against 3.0 or 2.9.9—it’s always been like this.
If you’re seeing something else, I need a description of how to replicate
it—which edge? what zoom level?
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)
If you’re too near an edge, it isn’t always possible to keep the same
center. Check this against 3.0 or 2.9.9—it’s always been like this.If you’re seeing something else, I need a description of how to replicate
it—which edge? what zoom level?–
J.
You’re right Joel, it happens in the old version too. I don’t quite understand why it’s not possible to zoom in on the spot in the center of the Vassal window however.
For example, open Case Blue 0.15, select Uranus & Mars. Scroll to the bottom right then zoom-in. For some reason it jumps near the Sea of Azov instead of to the hex in the center of the view window.
Thus spake “bsmith”:
You’re right Joel, it happens in the old version too. I don’t quite understa
nd why it’s not possible to zoom in on the spot in the center of the Vassal w
indow however.
For example, open Case Blue 0.15, select Uranus & Mars. Scroll to the bottom
right then zoom-in. For some reason it jumps near the Sea of Azov instead o
f to the hex in the center of the view window.
Thanks for the concrete example. That is definitely a bug. Whenever you
zoom in, at least some of what was on your screen before should remain.
I’ll look into fixing this—I think I already know what the problem is
from the symptoms.
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)