Having done the same, but with 20/30 kb images, I can
say no, your going to have a big problem.

2 work arounds, but I don't think they'll work in your
case. Both are glorified bandaids and not very good.

1)In actual play it will take a little less, rather
than in developing the module. Add fewer cards, then
save the module. Perhaps restarting after every save.

2)Get a computer with more memory, and allocate more
to the java stack on startup.

The solution (had I to do it over again, and I may
some day) is to use a background image for the face of
each card, enter the text as a property, and trim your
image to contain only the image specific to that card.

The B5 module runs with about 400-500 cards (and a
palette of 2300) in play and each image is ~25KB.

A game will almost always start with about 300-400 MB
and will increase to about 750 MB. I don't think that
the piece rotation algorithms are linear in their use
of space. Large images require a lot more memory to
manipulate. So at 80 KB an image, I really don't see
how you'd survive without 2 GB of memory or more.
--- alejandroanz <[EMAIL PROTECTED]> wrote:

> Hi all,
> first, sorry for my english :) ...
> Ok, I'm having this problem:
> My notebook usually uses 180 mb of 512 mb that it
> has, without 
> porgrams running. It has an on board video card that
> uses part of 
> its 512 mb.
> I've been working in a Vassal module (a Mythos ccg)
> for solitaire 
> playing, and when I got to load 170 cards a message
> appears wich 
> tells me that the aplication "has run out of
> memory". Then I checked 
> the memory usage and found that it was at 480 mb
> (close to 512).
> Then, vassal was using 300 mb to store the cards in
> memory... I 
> guess.
> Each jpg card image has no more than 80 kb.
> So, my cuestion is:
> I cannot reduce the card images in size because I
> wouldnt be able to 
> read part of its contents. Is there another way to
> reduce the memory 
> usage? 
> I'd like to load at least, 400 cards. Is that
> possible?
> 
> Another cuestion:
> Is there a way to reduce the size of the initial
> view of the cards 
> if you're not using the zoom tool? I mean I just
> want to view 
> them "large" only when I place the mouse over them.
> My problem is 
> that they appear as they are in the original jpg
> image.
> 
> Hope to be cleare, sorry for being this newbe, and
> thanks in advance.
> 
> 
> 



 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

Reply via email to