Any idea why I am bogging down?

Ok my laptop is a bit older, but has a fast processor and reasonable memory and I optimized it for program performance.


My FCW file is about 204 KB. When opened it says 835k mem used.

My background map is at most 28 MB.
Here is a list of all the entities. I the picture.

When I check the system it (cc3+) is running 1.2 gigs of memory. It bogs down harshly and that is only 20% of the physical memory. I don't understand why it is running so poorly?!?!??!
mem.jpg 46.6K

Comments

  • MonsenMonsen Administrator 🖼️ 81 images Cartographer
    Are you working with effects on? City maps uses a lot of effects, and these can impact performance quite severely. I recommend working with effects off. You can also use the REDRAWTIME command to check which of your sheets cause the most redraw time.
  • Sheet effects are off.

    Kinda looking like I am wasting my time doing the Lankhmar map in a nice bitmap style. May have to restart and do it vector only. Sucky.
  • LoopysueLoopysue ProFantasy 🖼️ 40 images Cartographer
    edited December 2016
    Remy - I did that REDRAWTIME command on my MC map. I can't understand any of the record it eventually presented to me. Is there a glossary of terms I can use to decipher it?

    EDIT: Oh! I see now! The time it takes is listed above each sheet. Its just that the list was so long I didn't look far enough to find it.

    Thanks for the tip. I'm now going to switch off more than half my sheets other than when I need to render. I don't really have any choice but to work with the effects on because I can't see what I'm doing without them.

    Is there a way I can make a sort of button to hide/unhide the sheets I'm always going to want to hide between renders (like the frame and the background etc), instead of having to manually hide them again after every render?
  • MonsenMonsen Administrator 🖼️ 81 images Cartographer
    Posted By: cobra mustangSheet effects are off.
    You can also try changing the various Display Speed settings. For example, set the automatic bitmap quality to medium instead of high, and disable shading. This will make the map look worse when working on it obviously, but you can reenable the settings before the final rendering, or when you just want to have a proper look at the current state.
    Posted By: LoopysueIs there a way I can make a sort of button to hide/unhide the sheets I'm always going to want to hide between renders (like the frame and the background etc), instead of having to manually hide them again after every render?
    Yes. Just make a hotspot containing a macro. The command for hiding a sheet is HIDESHT and showing it is SHOWSHT. Just write a macro that is basically a list ofe HIDESHT/SHOWSHT commands (Note that the active sheet cannot be hidden)
  • LoopysueLoopysue ProFantasy 🖼️ 40 images Cartographer
    Thanks Remy :)

    Sorry to hijack your thread, cobra mustang!
  • No worries.
    I am all about learning. I believe any day you learn is a day not wasted.

    I will try finding the settings for the bitmaps and see if that helps.
  • DogtagDogtag Moderator, Betatester Traveler
    Out of curiosity, have you tried reducing the quality (and thus file size) on that 28 MB bitmap background?
  • LoopysueLoopysue ProFantasy 🖼️ 40 images Cartographer
    edited December 2016
    If its the size of the bitmap that's the problem, one way of making a major reduction in the file size might be to turn the vast expanse of white background transparent using a colour transparency pick tool in a photo editor, and then laying the partially transparent image down on a white rectangle the same size as the image (make a white background in other words and put the greatly reduced bitmap on that). Even though you would have to turn it into a transparent png file, and even though a png file is usually larger than a jpg, a lot of transparency in a png can cause it to be much smaller than the equivalent non transparent jpg. I think its something to do with the file not having to record any information for the pixels that... well... don't actually exist, so to speak.

    I discovered just how tiny image transparency could make a png file when I was trying to upload a set of step shadows to the Guild. The server wouldn't accept the file because it was too small. 1kb I think.

    This one in fact - the corresponding jpg is actually bigger than the png.

    [Image_7089]
  • I adjusted the bitmap settings and that helped a bit.
    Looked and found that when I tried to put in my map I put in three by accident. I deleted the two extras. Still running at 1200mb of memory.

    I would love to mess around with the map I have put down as the layout. Though the last time I did that I never could get it to the correct scale or the right position.

    I will try edit the picture file and make it a smaller file but 28 megs of 1200 for operation of the program is negligible in my opinion.

    Went to advanced set up to see if I could allot more memory for functions in my operating system, but that is something I really don't want to screw with.


    Thanks for all the help and suggestions through to this point.
  • MonsenMonsen Administrator 🖼️ 81 images Cartographer
    Posted By: cobra mustangI will try edit the picture file and make it a smaller file but 28 megs of 1200 for operation of the program is negligible in my opinion.
    Note that file size on disk does not map directly to memory size when loaded, due to file compression. I loaded a 36MB png file into my image editor, and it reported that the loaded image consumed nearly a gigabyte of memory. (Just for the image itself, no editing data)
  • The image file on the hard drive is compressed. The image loaded into memory is not. Image compression algorithms are very efficient these days. A 28 meg PNG or JPEG file is pretty huge.
  • GatharGathar Traveler
    edited December 2016
    You may want to have a look at this discussion where I tried to analyse some perf issues on my display, especially if you have a high res screen.
  • jslaytonjslayton Moderator, ProFantasy Mapmaker
    edited December 2016
    Posted By: LoopysueIf its the size of the bitmap that's the problem, one way of making a major reduction in the file size might be to turn the vast expanse of white background transparent using a colour transparency pick tool in a photo editor, and then laying the partially transparent image down on a white rectangle the same size as the image (make a white background in other words and put the greatly reduced bitmap on that).
    In CC3 (and CC3+; I'll just refer to them as CC3 from here on), loading an image converts it to a 32-bit RGBA (red,green,blue,alpha) image internally. The amount of memory used by the image is the width multiplied by the height multiplied by four, regardless of the input format and the presence or absence of transparency in the source image. to get a single image to use 1GB of RAM would require it to be on the order of 15000 by 15000 pixels.

    CC3 also uses a few (roughly 7) temporary images when drawing the onscreen image with the size of each temporary being related to your screen resolution (e.g. 1920x1080x4x7=60ish MB for a 2k screen or 240MB for a 4k screen). There are filters and processing paths that can easily double that working memory estimate.

    Another major user of memory may be the fill styles. Fills can use a lot of memory. try RESMODE and see what the "currently in use" bitmap cache size is reporting. For extensive reporting, try entering EFFECTSCACHE at the command line.
  • Everything I have tried leaves the cache at 1200mb

    I deleted the main image I was using and it still read as 1200+/-


    Now I believe it must be the number of different types of bitmap symbols I am using. Using tons of the different buildings from the different CD3 collections. Even when I reduce it to the lowest resolution it still stays at 1200+/-
    I have 8000 entities and the redraw is still 15-20 seconds. Not ridiculous, but that is with everything reduced to lowest settings. So if I complete the map, it would be not very useful as a gaming aid. If everything was at top level the redraw probably would take forever or crash.
  • jslaytonjslayton Moderator, ProFantasy Mapmaker
    Did you look at RESMODE and EFFECTSCACHE? I edited those in a bit after the original post and you might have missed the update.
  • resmode is at 1188

    I changed the display to lowest res and no shadow and every other item to reduce memory usage. Also deleted the map image and did the resmode and no change in the number.

    checked the effectscache
    Free total memory 4095mb
    free physical memory 2150mb
    size of effects 0kb in 3605524 files
    maximum cache size 2047mb

    I counted the number of different bitmaps and I think it was 320. give or take.


    No worries. I guess I will have to chalk it up as it is what it is. The city setting of Lankhmar is huge like a couple thousand buildings. So I will have to chalk it up as a learning experience and proceed with the old fashioned vector symbols.
  • LoopysueLoopysue ProFantasy 🖼️ 40 images Cartographer
    @ jslayton - Sorry Joe! I forgot that transparency vanishes on import - and I should really know that by now, after discovering this for myself with a relief shading bitmap that refused to be transparent when I imported it for Merelan City.

    @ cobra mustang - I think I would be correct in saying that it doesn't matter how many bitmap symbols you have on the map after the first one of each type, because the others are just reference calls to the one and only symbol definition that takes place the first time you used that particular symbol. So one cottage, or 10,000 of the same cottage - it doesn't really make much difference. I have three sets of different Profantasy buildings in my MC map, but they aren't what's sapping the power. The thing that seems to be really swallowing memory in Merelan City is the sheer number of nodes describing the 8 levels of strata that make up the island. Its like having 8 x as many nodes as normal for the same coastline. As if that isn't enough I have two types of grass texture sandwiched between each Sheet of rock, which means I basically have 24 islands drawn on top of one another.

    Back when I first drew the outlines of all those 24 Sheets I had to use "remove nodes" 3 x on each sheet just to make it workable. The map now has 132 Sheets and bristles with hundreds of symbols, both Profantasy and home made, but the thing that is really causing the problem is all the nodes on those rock and grass sheets, and all the bevel and glow effects I'm using to turn them into cliffs.
  • DogtagDogtag Moderator, Betatester Traveler
    Cobra mustang, are you using any non-ProFantasy symbols or fills? Would you mind sharing the fcw that you have so far? I could open it on my system and see if I have the same problem. Granted, I won't have the bitmap background, but it'd still tell us something.
  • Yea it is a project I would freely share for fans of Lankhmar anyways after completion.
  • MonsenMonsen Administrator 🖼️ 81 images Cartographer
    edited December 2016
    For some reason, quite a lot of your symbols uses CC3-type references, causing them to only display the Very High resolution version of the image.

    I was able to make it much snappier by doing the following
    - run the FFIX command
    - Save the map (Keep a backup of your original just in case)
    - Shut down and restart CC3+
    - Go to Display Speed settings, and set a manual bitmap quality to low or very low (This helps quite a lot on a map of this size, but only works when the symbols uses proper CC3+ references, which the above two steps fixes.)

    The root cause of this may be bugs in the CD3 for CC3+ catalogs, I noticed several wrongly defined symbols, especially in the Bitmap B style. This can be fixed by running FFIX on the symbol catalogs themselves, or regularly running it on your map to fix the symbols as they are inserted.
  • LoopysueLoopysue ProFantasy 🖼️ 40 images Cartographer
    For some reason I've got this horrible feeling... now that you've mentioned the CD3 symbols... that maybe some of my problem with spotty houses could be fixed with FFIX.

    That being the case... I'm thinking that maybe drawing a new set of houses just to get rid of the spotty problem I've been having with Merelan City is maybe a pointless waste of time?
  • Absolute massive difference.
    Now I noticed that when I did change res settings before the images never changed.
    That FFIX is now my friend.

    The draw time on very lowest res is half a second. Looks rather like nintendo 8 bit graphics.
    The Low res graphics look great. I prefer them over the high res graphics, it looks more artistic rather than computer graphics.

    Thanks a ton really appreciate the help.

    Memory usage is down to 725 mb and zooming in and out is about 1 second. Using the mouse wheel to zoom is like 1/10per click

    I really do appreciate the help. I was getting really frustrated and almost gave up working on this.
  • MonsenMonsen Administrator 🖼️ 81 images Cartographer
    That's understandable, your map was behaving really sluggishly. I am glad we were able to figure out the fix. (And the cause)

    Note that FFIX isn't a magic wonder though, it only converts symbols from using CC3-like paths to CC3+ like paths, so it only makes a difference as long as you have symbols using CC3-like paths in your drawing. Symbols using CC3-style paths (i.e the #-character, which points to the installation directory) instead of CC3+ style paths (i.e. the @-character, pointing to the data directory) doesn't work with the automatic bitmap resolution system, so only a single resolution is ever used (Which leads to very slow map if the VH resolution is the one being used, or to very low-quality maps if the VL resolution is used).
  • So is this an unforseen error on the part of CC3+
    That with this upgrade some symbol sets were lost in the upgrade?

    Can they be manually adjusted, so that saying the next update to CC3+ doesn't restart the same problem all over again? (and me forgetting to do FFIX)

    Just kinda curious.
    I love CC and am really glad others do and are so helpful. Maybe in the future I'll have enough knowledge to be helpful.
  • MonsenMonsen Administrator 🖼️ 81 images Cartographer
    The problem seems to be that some of the symbol catalogs in CD3 was not converted properly (Either they were not converted at all, or the old version snuck into the installer or an update. You can manually fix the symbol catalogs by opening them up (as a map, not simply in the symbol catalog window) and running FFIX on them, then saving them. However, if the error lies in a CC3+ update, your changes will be overwritten when you run it unless the update itself is also fixed.

    I'll investigate this a bit further, and notify ProFantasy.
  • LoopysueLoopysue ProFantasy 🖼️ 40 images Cartographer
    Thanks Remy. I ran FFIX on Merelan City, and now my houses are no longer spotty.

    I'm really glad you discovered that little problem. I was in the middle of drawing a whole new building set to replace them because I couldn't stop the gothic set looking like they had thousands of tiles missing - all those sharp little black spots being caused by the wrong res symbol.

    Now I just have to decide whether it will be worth finishing the set I was making, because I'm quite happy with the gothic set now that it doesn't look already half ruined.
Sign In or Register to comment.