Welcome to Tactical Gamer

+ Reply to Thread
Results 1 to 11 of 11
Discussion: Age Of Conan: Hyborian Adventures / Age Of Conan - General Discussion - Possible Out-of-Memory & Grey Map Fix - I did some searching for a fix to the "grey map" issue (when your maps
  1. #1

    Gambit7's Avatar

    Join Date
    Aug 2004
    Location
    Hollywood, FL
    Age
    35
    Posts
    2,420

    Lightbulb Possible Out-of-Memory & Grey Map Fix

    I did some searching for a fix to the "grey map" issue (when your maps basically just turn grey). Turns out the grey map problem is an indicator of a memory resources issue (possibly a leak), which eventually leads to a crash. People using 64-bit Vista seem to not have this issue, and folk using trimmed down older systems on XP are usually fine as well. For those of us in the high-end 32-bit Vista arena (which is most of us), we have problems galore.

    The issue lies in how much memory is allocated to the game. You can "force" Vista to allocate RAM towards applications by using a particular edit tool (bcdedit). How much you force depends on how much ram you have. Ideally you'd have a system managed pagefile alongside. (yes, I've fooled with pagefile settings and it doesnt help)

    I tested this tonight and the fix looks promising. I'll have more results later this week. If it seems to work I'll post it. I also have another 2GB of RAM incoming so I can test with 4GB setup, which would change the allocation.

    Note: Funcom future patch notes give no indication of a client fix to this issue since it lies deep within the code of the game. They'd have to rewrite the whole engine from the beginning to properly optimize it. So, they're doing it little by little (this is why some zones are more optimized than others). For now, this fix may get us by.

  2.  
  3. #2

    Kebab-Kastike's Avatar

    Join Date
    Jun 2007
    Location
    Finland
    Age
    22
    Posts
    2,848

    Re: Possible Out-of-Memory & Grey Map Fix

    I heard you go find this fix on TS.
    I have grey map and memory crashes, amongst random CTD, bluescreen and Funcom error message crashes, yet I run on XP but not on old computer. I must say it's rather annoying.
    |TG| Kebab-Kastike reporting for duty. | Why? Tubes! The internet is tubes!
    My TacticalGamer VOIP&Teamplay videos

    Minä kaskean, vihan liekillä kylvän veristä ohraa.
    "See the world, while it's still there" - Madventures


  4.  
  5. #3

    Gambit7's Avatar

    Join Date
    Aug 2004
    Location
    Hollywood, FL
    Age
    35
    Posts
    2,420

    Re: Possible Out-of-Memory & Grey Map Fix

    So far, so good. Last night I didnt have any OOM failures but I still get the grey map fault. Today, I bit the bullet and moved to Shader 2.0, lessened shadows, and lowered particle effects and distances (gotta lessen shadows if u use 2.0). This SERIOUSLY made the game smoother and I got not one single fault in the game at all during the evening.

    Problem now is, I dont know what actually worked. Judging by the grey maps I got before tonight I'm assuming my memory fix didnt quite work as well as hoped. <sigh> But my shader solution did.

    The fix is here if anyone wants to try it (I take no responsibility in broken rigs):
    http://aoc.wikia.com/wiki/Out_of_Memory_Error

    Another bunch of mem-related fixes I havent fooled with:
    http://www.ocmodshop.com/ocmodshop.aspx?a=989 (these may work better)

  6.  

     
  7. #4

    Gambit7's Avatar

    Join Date
    Aug 2004
    Location
    Hollywood, FL
    Age
    35
    Posts
    2,420

    Re: Possible Out-of-Memory & Grey Map Fix

    Here's something I pulled off the Funcom forums about RAM. It's old news to some folk but I want to make sure everyone knows about it. It clears up some issues:

    Random access Memory (RAM)

    The amount of memory installed in your computer is absolutely critical to running this game smooth. The game itself has been developped as a 32-bit executable with LA (large address awareness) enabled. What does this mean? 32-bit executables are by design restricted to 2GB per running process on a 32bit OS. (ageofconan32.exe = 1 process = the whole game) As you zone to the inn or other zones, the executable size in memory will try to cache all this information (= keep it loaded in memory in the form of ageofconan32.exe growing in memory usage size) to give you a smoother gaming experience. I have noticed that the "working set" of the executable grows to as large as 1.9-2GB (since latest checkup), this is how much of your physically present RAM is being used by the game. If you don't have that amount of free ram BEFORE starting up the game, your game will slow down after zoning enough times and slow down even further over time until you restart it to make the game use less memory again. For this reason you need under XP at least 2.5GB in your computer to run this game smooth and under Vista at least 3GB. Aside from the physical usage there's also the virtual size (the actual size of the process) which I have seen to grow as large as about 2.1GB after zoning alot. The current gameclient releases it's allocated memory from loaded zones very good so you always stay in the 1.5-2GB physical usage range and that is very good.

    note: 4GB is the ideal amount needed to run this smooth along with whatever other stuff you run on your OS (services, background apps, the OS memory itself) Vista will even use the extra memory to help cache other stuff. I have 8 and beyond 4GB you do not notice much more improvement in speed and smoothness so 8GB is NOT necessary for running ONLY this game while having all other apps closed. However having 8GB will help considerably with caching the zone loadings and other stuff under Vista as well as allow you to simultaneously run a bunch of other windows programs. Above 4GB is a luxury however, not a must have. A total of 2GB in your computer means running the game at decreased performance. This is inevitable. memory is cheap so try to get 3 or 4.

    note: the speed of the memory is completely trivial when compared to the actual amount of memory. Having e.g 1066 Mhz mem instead of 667Mhz will only yield a 1-3% memory read speed increase in synthetical benchmarks but in a game don't even feel or notice anything at all. Think about that before buying expensive memory

    note: although increasing your RAM from 2GB to 3GB is in essence not a direct increase in fps but instead makes the game play and loading/zoning feel alot smoother, it should be noted however that if you lack alot of RAM your FPS will be affected through stuttering etc. Running the game with 1GB e.g will give such problematic play (enough to feel 'unplayable') Having 2GB is therefore a bare minimum for running at all while 3GB is the minimum for running smooth. 4GB is a good standard. More memory with Vista 64 gives you better HD access caching. For more details about memory see the /3GB guide


    Ultimately, I really do believe RAM is effecting many folks' FPS. I could tell it was effecting mine just by how often I'd get grey-map and OOM with everything on high. Another 2GB is only 50 bucks for me so I'll be good to go shortly I think.

  8.  
  9. #5

    Gambit7's Avatar

    Join Date
    Aug 2004
    Location
    Hollywood, FL
    Age
    35
    Posts
    2,420

    The actual fix itself in greater detail:

    Okay, I've revised my fix based on my observations and this post from Funcom forums. It explains why I still got the grey map with the mem fix. Basically, I wasnt accomplishing anything because I only had 2GB of RAM and I was using full settings on the GPU (draining the mem usage). So the fix is go to 4GB of RAM and play with this switch or "for the time-being" switch to Shader 2.0 and gimp your shadows (shadows create artifacts in 2.0). I'd probably set the pagefile to buy some extra time and pick up the slack, rather than leave it to the OS to set it.

    Since it's so popular, here's my complete roundup to managing user-mode memory on 32-bit Operating systems with 4GB physical memory:


    Intro: What is this all about ?

    a 32-bit OS such as Vista or XP has a few limits when it comes to memory use. To sum them up they are:

    1.The Operating itself can only "see" 4GB minus the amount of reserved memory space by the Bios (because the bios is a layer that stands between the hardware and the operating system itself) The larger the memory on your video card for example, the less memory is left for your OS. This why one person sees only 2.8GB in windows and another sees 3.5GB while they both have 4GB of physical memory installed. Regardless of which edition of an OS you have, ALL 32-bit XP and Vista are subject to this rule.
    2. 32-bit XP and Vista are designed in such a way that they need a part of the total addressable (= amount of memory that the OS can "see") for themselves. For this reason, Microsoft designed both XP and Vista in such a way that a certain process could only get up to 2GB of memory, and then the remaining memory would remain available for kernel processes (= itself), even though it does not in fact always need a full 2GB. In fact a clean XP might only need 300MB at some point if only 1 game is running and nothing else installed. Vista will require more kernel memory because it's bigger by design. As more stuff runs, the OS itself might need up to 1.5-2GB of memory for it's kernel. By default the balance in 32-bit XP and Vista is such that it's 2GB for a given user-mode process (= a program = Age of Conan) and 2GB for the kernel (= OS itself) If the virtual size of a process such as Age of conan reaches a total size of 2GB, the program is terminated by the OS BY DESIGN to prevent it from infiltrating the kernel reserved memory space. The user experiences this as a program crash straight into windows. For age of conan, my tests have shown that it's virtual size reaches 2GB at about when the physical memory usage size reaches around 1.5GB (this is what you see in windows task manager). This is why people keep crashing all the time without understanding why. Well, at least until now...
    3. 32-bit Processes (=programs) themselves have a built-in little extra mini switch that's called a 'flag' that prevents them from groing bigger than 2GB. Even if you configure the OS using the above to allow up to 3GB for a process, it would not be able to do so if it's built-in switch is set to "not Large Address Aware" because that settings limits the process to a max of 2GB memory. If it's set to "Large Address Aware" however the 32-bit process is allowed to grow up to 3GB on a 32-bit OS or up to 4GB on a 64-bit OS, which is again the maximum for ANY 32-bit process.


    Now there is a switch that makes it possible to shift the balance a bit from 2GB/2GB (program/kernel) to 3GB/1GB. This switch allows us to change the max mem limit for user-mode process so that Age of Conan can continue to grow in virtual size up to 3GB instead of only 2GB and that equals a physical memory usage of at least 2.2GB. The game will crash again when it reaches that new limit. My testing has shown that if you zone enough and roam about, the game wil go beyond 3GB physical usage and 3.5GB virtual size as of now. For this reason you can still crash. However, further testing has shown that the game reaches 1.5 physical usage in the first hour easily when zoning around Tortage (quite easy to simulate) while reaching the 2.2physical usage takes at the very least lots of zoning and usually a few hours to reach. For this reason the following switch (ONLY IF YOU HAVE 4GB MEM) may solve alot of problems for you


    Great news! So how do I set the switch ??

    Under Vista 32-bit:
    1. Under Vista 32-bit (with at least 4GB memory installed regardless how much you see of it in windows) go START
    2. Navigate to programs...etc until you see a black icon named "command prompt"
    3. rightclick it and select: run as administrator. A big black box appears
    4. In the big black box, type the following command: BCDEDIT /Set IncreaseUserVa 3072
    5. Press enter to execute the command
    6. reboot your computer

    7(optional). If you don't like it for some reason you can revert the switch the same procedure but replace step 4 with this: entering bcdedit /deletevalue increaseuserva (this undoes the switch)

    Under XP 32-bit:

    the equivalent of that switch on Vista for xp is simply by modifying the boot.ini file (it's a hidden system file under c:\) and add the /3GB switch to the line that looks like this:

    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Micro soft Windows XP Pro"

    so it becomes:

    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Micro soft Windows XP Pro" /3GB

    then reboot to activate the change

    to remove the switch under XP: remove the /3GB and reboot



    Is there a catch ? Any danger to this switch ?

    Yes, there is. You limit the available memory to the OS itself. If the OS tries to use more, windows will crash and you will have to reboot and start your programs up again. Is this most likely to happen ? Nope, generally it's not. But it can whenever the OS requires alot of memory, more than is available. Let's say someone has 4GB installed, but he uses 2*8800GTX (the type with 768MB per card) so his OS only "sees" 2.8GB. On top of that his computer is not cleanly/newly formatted. It's filled with tons of previously installed programs, antivirus and whatever else that uses memory. Then on top of that he's playing AOC with the switch so it's using over 2GB of memory...you can see where this is going and you know how to avoid it...

    note: in this regard and considering the fact that SLI currently is not working in AOC anyway : on computers with ony 3-4GB of memory, AOC can in fact run better with only 1 video card for now since then you have more memory available to windows not kidding...



    Final advice:

    enable this switch ONLY if the following conditions are BOTH true (if you still wonder why you haven't read the above):

    1. you have Windows XP32-bit or Vista 32-bit (any edition)
    2. you have at least 4GB of physical memory (even if your OS only sees 3.2)

    if the answer to any of the above conditions is NO, then do NOT enable this switch or it may work contrary to your goals.


    Note: On a 64 bit OS such as e.g Vista x64, this switch is not needed at all. The OS allows by default for any process to take up to it's maximum of memory available by design. Vista is able to "see" technically up to 128GB. Microsoft however decided to set a limit for each edition. so let's have another look at what restrictions we have for Vista x64 since that seems to be a popular question now:

    1. Restriction by edition: Vista Home basic supports max 8GB, Vista Home Premium max 16GB, Business-Enterprise-Ultimate all support 128GB
    2. Restriction by process: Since 64bit OS's can run both native 64bit designed process as well as 32-bit processes, there is still the max limit for a 32-bit process which is 4GB inevitably while a 64-bit process process could take up pretty much all memory. So if Ageofconan.exe is a 32-bit process and you are running Vista 64-bit with 8GB of physical ram (installed in the computer), then the OS will see all 8GB of ram while AgeofConan will crash if it reaches 4GB in virtual size but it will be able to use all 4GB since the OS still has enough memory left for itself so we dont' have the crappy situation from XP or Vista 32-bit. If Funcom would make a 64-bit version of the executable then it could grow even beyond 4GB up to..around 7-7.5 (assuming you have 8 onboard) ?? Something like that

    Note: since the introduction of 32-bit Vista, many people have complained to Microsoft about the fact that windows shows that they can actually only see 2.8-3.5GB of memory while having 4GB memory installed that starting with SP1, enough people in fact for Microsoft to decide to change the decription under "System" in windows control panel. Yes you are reading this right: after installing SP1 for Vista on your 32-bit Vista you will see 4GB instead of the lesser number, although lesser is still being used even though the system information will indicate otherwise. The phylosophy behind this is that the system information should reflect how much memory is installed in your computer, not how much is effectively available to windows or used by windows so be careful there. Important to remember is the fact that you STILL only have 2.8-3.5 available for windows when doing your math for memory hungry programs such as this game... again, with 6GB or more and Vista 64-bit SP1 all those troubles are nonexistant and that's the near future of gaming imho !


    Why is this ?
    Setting the switch shifts the memory limit from the AOC client to the OS itself on (32-bit OS only). So: before april 14 your AOC client was the main source of crashing and your OS less since the client wanted to grow up to 3.1GB physical memory usage. By setting the /3GB switch you let the AOC client grow bigger at the cost of limiting the OS itself to 1GB which may make it crash as well. After april 14 the client only grows up to 2.1 so if you remove the /3GB switch you revert back to the default 2GB/2GB balanced limit (2GB for AOC, 2GB for the OS) so the OS is safe from any crashing now. Hence since AOC is no longer the main source of crashing we can conclude that the remaining crashes (coming from not enough free memory for the OS) may be removed by reverting back to the default settings. Hope this explains alot for people

  10.  
  11. #6

    Gambit7's Avatar

    Join Date
    Aug 2004
    Location
    Hollywood, FL
    Age
    35
    Posts
    2,420

    Re: Possible Out-of-Memory & Grey Map Fix

    A really helpful thread to tweak your system for AOC is here:
    http://forums-eu.ageofconan.com/showthread.php?t=134

  12.  

     
  13. #7

    Krako's Avatar

    Join Date
    Jan 2008
    Location
    Montréal, QC
    Age
    35
    Posts
    124

    Re: Possible Out-of-Memory & Grey Map Fix

    I gray-map every 4 hours or so (not more than once a night).
    What about you guys? is it more or less frequent?


  14.  
  15. #8

    P8riot's Avatar

    Join Date
    Oct 2005
    Location
    Bradenton, FL
    Age
    41
    Posts
    3,054

    Re: Possible Out-of-Memory & Grey Map Fix

    I don't understand the 'gray-map' thing. Are you meaning the in-game textures go gray or the map goes gray?

    If it is the textures.. then I have only had it happen in one particular area.. and I just figured the texture mapping was f'd up..





    Age of Conan: Commandant of the Order of the Silver Dragons
    Tharashk (HoX), Thraesian (PoM), Thaumiel (Guardian), Sorus (Assassin)

    XBox360 GamerTag: P8riotOne (but it might also be my son playing - he can game with TG tho!)

  16.  
  17. #9

    Gambit7's Avatar

    Join Date
    Aug 2004
    Location
    Hollywood, FL
    Age
    35
    Posts
    2,420

    Re: Possible Out-of-Memory & Grey Map Fix

    Quote Originally Posted by P8riot View Post
    I don't understand the 'gray-map' thing. Are you meaning the in-game textures go gray or the map goes gray?

    If it is the textures.. then I have only had it happen in one particular area.. and I just figured the texture mapping was f'd up..
    The minimaps go grey. It's a precursor to an OOM situation. So far, I've been able to stave it off by switching to shader2.x but it still crops up after a lot of zoning. Looks like the best fix is still getting 4GB and altering the bcdedit switch.

  18.  

     
  19. #10

    P8riot's Avatar

    Join Date
    Oct 2005
    Location
    Bradenton, FL
    Age
    41
    Posts
    3,054

    Re: Possible Out-of-Memory & Grey Map Fix

    Quote Originally Posted by Gambit7 View Post
    The minimaps go grey. It's a precursor to an OOM situation. So far, I've been able to stave it off by switching to shader2.x but it still crops up after a lot of zoning. Looks like the best fix is still getting 4GB and altering the bcdedit switch.
    OK, Haven't run into that. I've had texture maps go textureless and gray with only shading but it was only in one underwater location so far.





    Age of Conan: Commandant of the Order of the Silver Dragons
    Tharashk (HoX), Thraesian (PoM), Thaumiel (Guardian), Sorus (Assassin)

    XBox360 GamerTag: P8riotOne (but it might also be my son playing - he can game with TG tho!)

  20.  
  21. #11

    Gambit7's Avatar

    Join Date
    Aug 2004
    Location
    Hollywood, FL
    Age
    35
    Posts
    2,420

    Re: Possible Out-of-Memory & Grey Map Fix

    update:
    My system was unstable when I got the new RAM. Turns out it's a different version of the same RAM and runs at a slightly more conservative TRAS. So, setting on auto (since it's a dual channel) puts one channel at 12 and the other at 18... which is bad. So I manually forced the more conservative timing to 5-5-5-18 and everything's groovy now.

    Man, the speed difference is NIIIIIIICE.

    Anyways, just thought I'd FYI here for those thinking of buying more RAM (stuff is so cheap you'd be stupid not to). Just be mindful of timing differences. I could've probably went with 5-5-5-12 timings but "meh." I wouldnt notice the speed difference.

  22.  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


  
 

Back to top