Asset size and performance

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
xavram
Dragon
Posts: 891
Joined: Tue Apr 20, 2010 8:22 pm

Asset size and performance

Post by xavram »

I'm working on an isometric map and it has a wall image that runs for like 1300 squares. To make life easier for me, I created a really big image of the wall, and then just copied it 4 times and pieced them together to get a continous wall. The asset is big, a 3000x1800 png image.

Then i got to wondering if this is the right way to tackle this. Which is preferable in maptool? Less assets that are really big...or tons of assets that are more reasonably sized? Is there a conclusive "go this route" answer or does it depend more on specific circumstances?

Thanks! No problems with chopping my 4 walls into 40 walls, if that helps with performance!


User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Asset size and performance

Post by JamzTheMan »

Yea, if it's a "repeatable" image, it's better to let MT repeat that image for you vs doing it externally and creating a large map. However, it's really based on memory size.

For instance, if that 3000x1800 is only 100kb image, then that's not much of a concern. If it's 30mb, that's an issue (well, could be, depends on your player's clients. Running on a core i7 with 48 GB ram and on a 1 GB network, is a lot different than I3's with 4GB ram over the internet)

So, if you have 1 10kb image representing 1 cell, and paste that 1300 times, MT can cache the image once and draw it 1300 times more efficiently than 1 single 130mb image...
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

xavram
Dragon
Posts: 891
Joined: Tue Apr 20, 2010 8:22 pm

Re: Asset size and performance

Post by xavram »

Thanks for the feedback.

The original "big" image was 3.4 megs, the new one which I now repeat lots and lots times is 277 kb. Once I had replaced all the big pieces with all the small pieces, the overall size of the campaign file itself dropped by 3 megs, so that seems to be roughly the difference.

Have not had a chance to see actual performance, with players connected, but hoepfully this is a step in the right direction.

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Asset size and performance

Post by JamzTheMan »

It definitely won't hurt at least.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

Post Reply

Return to “MapTool”