Page 1 of 2 12 LastLast
Results 1 to 30 of 33

Thread: New Memory Leak Thread for 1.5

  1. #1
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default New Memory Leak Thread for 1.5

    Well, the memory leak is back. Had the *exact* same symptoms after a long session. The good news is that it seems to take longer before the leak becomes problematic. Any one else seen it yet? Looks like CA found *a* problem and fixed it, but didn't find all the problems.

    I noticed it after coming back to a session after dinner. It was mild at first, but got progressively worse. Was sucking up over 270 MB when I got out. Same routine as before.
    Rome Total War, it's not a game, it's a do-it-yourself project.

  2. #2
    Senior Member Senior Member Jambo's Avatar
    Join Date
    Jul 2002
    Location
    Athens of the North, Scotland
    Posts
    712

    Default Re: New Memory Leak Thread for 1.5

    I guess not, but then I have 1.5 GB RAM so I suppose I'm unlikely to notice any memory problems?
    =MizuDoc Otomo=

  3. #3

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Jambo
    I guess not, but then I have 1.5 GB RAM so I suppose I'm unlikely to notice any memory problems?

    Last time it seemed to affect people with 512mb of ram the most,
    so i supose it would take 3x as long for you to relize if it really was a memory leak,
    however most "if not all" with more than 512mb of ram never sufferd.
    so it cant be a real memory leak or every 1 would notice after a given time period,

    I.e
    it Takes 120 mins to leak 256mb of ram After that system needs more ram so leeks at a faster rate,
    so logic dictates that after 240 mins Of a real memory leak 1gb of ram would have been leaked,
    And 360 mins would = 2.5gb + And could result in a system crash
    This never happend,

    A EXE leaking memory Has no real idea of your amount of ram, So it would not single out 512mb Systems.
    So take from that what you will.
    Last edited by Just A Girl; 12-16-2005 at 10:43.

  4. #4
    Member Member Tyrac's Avatar
    Join Date
    Jan 2003
    Location
    Boston, USA
    Posts
    245

    Default Re: New Memory Leak Thread for 1.5

    It is odd. I have only 768 ram yet have never had this happen that I can tell and I often run the game all day and well into the night playing and leaving and coming back etc. <shrug>
    "Enough talk!"
    -Conan the Destroyer

  5. #5
    Urwendur Ûrîbêl Senior Member Mouzafphaerre's Avatar
    Join Date
    Nov 2003
    Location
    Mikligarðr
    Posts
    6,899

    Default Re: New Memory Leak Thread for 1.5

    .
    768 > 512
    .
    Ja mata Tosa Inu-sama, Hore Tore, Adrian II, Sigurd, Fragony

    Mouzafphaerre is known elsewhere as Urwendil/Urwendur/Kibilturg...
    .

  6. #6

    Default Re: New Memory Leak Thread for 1.5

    I have a 512 MB system, and I would get severe slowdowns in RTW v1.3 after playing for a couple of hours. I don't get those slowdowns under RTW v1.5. With RTW v1.5, the RomeTW.exe uses about 250 MB of physical RAM and about 300 MB of virtual RAM. This leaves me with about 50 MB of physical RAM free. I have seen the RomeTW.exe grow to 300 MB when there was more physical RAM available. I haven't seen my total virtual memory use go over 600 MB while running RTW v1.5. Under RTW v1.3, my virtual memory use would be up around 750 MB when the slowdown was occuring.

    _________Designed to match Original STW gameplay.


    Beta 8 + Beta 8.1 patch + New Maps + Sound add-on + Castles 2

  7. #7
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Just A Girl
    Last time it seemed to affect people with 512mb of ram the most,
    so i supose it would take 3x as long for you to relize if it really was a memory leak,
    That reasoning has a big flaw. With zero leak a 512 MB system is using a great deal of the available physical memory to run the game, whereas a 768 or 1 GB machine is not. Assuming about 300 MB use normally yields about 200 MB differential for a 512 MB system, and 1200 MB for a 1.5 GB system. On that basis it would take 6 times as long to see the same effect. If the differential is ~100 MB it would take 11 times as long to see the same effect.

    however most "if not all" with more than 512mb of ram never sufferd.
    so it cant be a real memory leak or every 1 would notice after a given time period,
    Perhaps you didn't notice, but CA *admitted* there was a memory leak in 1.3. That pretty much destroys the "there was no memory leak argument."

    Regardless, I would wager that you have it backwards. Most suffered from it and it wasn't limited to ATi or NVidia cards, it "crossed party lines." I was skeptical of it until I saw it myself several times. I usually ignore "memory leak" threads as poorly configured systems, but RTW 1.3 was different. I didn't hear that many with 512 MB say they didn't have the leak. And of those who didn't several said they tweaked windows settings to get it to go way--meaning they also had the leak. Those who don't get to play extended sessions probably won't see the leak. I've never seein it happen form a one hour session. And before you go on about machine stability, this box has been completely stable. Since I'm able to recover the memory on the fly and relaunch, it is the app that is at fault.

    A EXE leaking memory Has no real idea of your amount of ram, So it would not single out 512mb Systems.
    So take from that what you will.
    Which is what exactly? If you have a leak it is going to show up in the systems with the fewest resources first.
    Last edited by Red Harvest; 12-16-2005 at 17:08.
    Rome Total War, it's not a game, it's a do-it-yourself project.

  8. #8
    Chief Biscuit Monitor Member professorspatula's Avatar
    Join Date
    Oct 2004
    Location
    Inside a shoe.
    Posts
    1,158

    Default Re: New Memory Leak Thread for 1.5

    I was going to post about the memory leak last night - but once again, refrained from mentioning it, but you did anyway. Seems I'm not alone in noticing it then. I had RTW playing for about 4-5 hours last night. I was only playing for a couple of those hours, the rest of the time I was elsewhere. When I returned to the game and engaged in a battle, I noticed towards the end of the battle the game would pause briefly to access the harddisk - then it paused for about 15 seconds just trying to leave the battle. The memory leak was definitely back. Upon closing the game down, I noticed 120,000K of memory was being used and it took about 1-2 minutes before the memory was released. The memory leak was less perhaps than before, but still there.

    Something else CA haven't fixed in their latest wondrous patch then. I really love whoever does their QA passing. I'm want to invite them round to Christmas dinner and then perhaps thump them.
    Improving the TW Series one step at a time:

    BI Extra Hordes & Unlocked Factions Mod: Available here.

  9. #9

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Red Harvest
    I noticed it after coming back to a session after dinner. It was mild at first, but got progressively worse. Was sucking up over 270 MB when I got out. Same routine as before.
    Windows manages how much physical memory is allocated to an application, so it can change while the program is running. It appears that RTW uses about 600 MB of total memory: physical + virtual. It's possible that some other applications were swapped into virtual memory and RTW was allocated more physical memory. RTW may well use somewhat less memory when its first started than later on when more features have been accessed such as battles. If there is a memory leak, the total memory used by the application would continue to increase.

    After I start RTW, I have 50 MB of physical memory free, 250 MB for RTW + 200 MB for all the other stuff I have running. I ran RTW for over 24 hours and I didn't get any slowdowns. I wasn't playing continuously, and RTW was minimized over most of that time, but I did play several turns just before quitting the game, and didn't observe any slowdown except portions of the map scrolling were slow until Windows swapped the entire map from virtual memory back into physical memory. The program wasn't using more than 600 MB of total memory when I finally quit.

    _________Designed to match Original STW gameplay.


    Beta 8 + Beta 8.1 patch + New Maps + Sound add-on + Castles 2

  10. #10

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Red Harvest
    I noticed it after coming back to a session after dinner. It was mild at first, but got progressively worse. Was sucking up over 270 MB when I got out. Same routine as before.
    I'm not trying to belittle your complaint as I hate badly optimised games but 270mb is NOTHING these days. Compare RTW to the system-cripplers known as Civ IV and X3 and you'll realise what a modest amount 270mb is. If an application taking up that amount of RAM is more than your system can handle, it really is time to get another 512mb....it's like $30 these days.

  11. #11
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by GFX707
    I'm not trying to belittle your complaint as I hate badly optimised games but 270mb is NOTHING these days. Compare RTW to the system-cripplers known as Civ IV and X3 and you'll realise what a modest amount 270mb is. If an application taking up that amount of RAM is more than your system can handle, it really is time to get another 512mb....it's like $30 these days.
    Clarification: that 270 MB is what the app is still using *when it is closed*. It is the source of all that disk activity. During the game RTW uses more and more virtual memory. Then it starts swapping back and forth to disk for longer stretches during the game. After taking ~45 seconds to shut down, and about another 20 seconds to get taskmanager to open, RTW's exe is still claiming that big chunk...and windows is trying to reclaim it. This leads to several minutes of solid disk activity where the amount of memory allocated actually GROWS (up to north of 330 MB at times) before declining and eventaully disappearing.
    Rome Total War, it's not a game, it's a do-it-yourself project.

  12. #12
    Chief Biscuit Monitor Member professorspatula's Avatar
    Join Date
    Oct 2004
    Location
    Inside a shoe.
    Posts
    1,158

    Default Re: New Memory Leak Thread for 1.5

    RTW v1.0/1.1/1.2 = No such memory leak. Game runs fine. Everyone's happy (because they've forgot about the other bugs back then).

    RTW v1.3/1.4 = Memory leak. Game becomes unplayable after x amount of time on the same system as before when there was no memory leak.

    RTW v1.5/1.6 = Memory leak. Game becomes less playable after x amount of time on the same system as before.

    Once more the issue isn't: 'Get more Ram, it's cheap and you'll have nothing to complain about'. It's, 'there's a memory problem which wasn't prevalent in the older versions, but is there now and is a considerable annoyance that hasn't been fixed, despite CA's efforts.' If anything, I'd like to know why the memory leak is occuring when little has really changed in the game's engine. I don't think anyone should expect to just throw more ram into their system and forget about it.
    Improving the TW Series one step at a time:

    BI Extra Hordes & Unlocked Factions Mod: Available here.

  13. #13
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Puzz3D
    Windows manages how much physical memory is allocated to an application, so it can change while the program is running. It appears that RTW uses about 600 MB of total memory: physical + virtual. It's possible that some other applications were swapped into virtual memory and RTW was allocated more physical memory. RTW may well use somewhat less memory when its first started than later on when more features have been accessed such as battles. If there is a memory leak, the total memory used by the application would continue to increase.

    After I start RTW, I have 50 MB of physical memory free, 250 MB for RTW + 200 MB for all the other stuff I have running. I ran RTW for over 24 hours and I didn't get any slowdowns. I wasn't playing continuously, and RTW was minimized over most of that time, but I did play several turns just before quitting the game, and didn't observe any slowdown except portions of the map scrolling were slow until Windows swapped the entire map from virtual memory back into physical memory. The program wasn't using more than 600 MB of total memory when I finally quit.
    That map scrolling problem lag often the first visible symptom. After that I notice battles slowing down (sieges suffer the worst.) Whichever I notice first (campaign or battle lag), map scrolling is always a problem after the onset of symptoms--ditto for battle. It isn't constant either, it gets progressively worse the longer I play like that. When the map scrolling is a problem I can see the disk activity as I attempt to scroll across the map. I don't know what RTW is doing with the memory, but it is clear that it is no longer finding sufficient memory to run without constantly swapping back and forth to disk. That is an order of magnitude slower.

    Battle load times and exit times also increase several fold (and get worse) as this occurs--and they continue to get progressively worse. It really acts like it only has a small portion of the physical RAM (and/or bandwidth) left available for actually running the active portions of the game at the time. If you've ever done troubleshooting on an integrated graphics PC at work that has too little memory (128 MB with Office apps in XP for instance) then you will easily recognize the behaviour. With such systems, adding a stick of memory helps alot...but the bandwidth is still restricted by the crappy integrated chipset, so while the horrible lag is removed, the system still lacks "snap" compard to non-integrated chipsets.

    P.S. I don't know what minimizing would do. I never minimize the game.
    Rome Total War, it's not a game, it's a do-it-yourself project.

  14. #14
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: New Memory Leak Thread for 1.5

    professerspatula,

    I agree with much of that.

    The other aspect that CA should be paying attention to is that adding memory merely masks the problem. The problem is still there and indicates errors in the base code that are accumulating. If it started with lag, and stayed the same, then I wouldn't be calling it a leak. It is the progressive nature of the problem that points to application flaws.

    (If I had to shut down Excel every few hours because it got progressively slower, then I would know there was a problem with Excel. Ditto for IE, word, or any other app.)
    Rome Total War, it's not a game, it's a do-it-yourself project.

  15. #15

    Default Re: New Memory Leak Thread for 1.5

    Red Harvest,

    I forgot which operating system you are running. I use WinXP Professional + SP2. Probably on Saturday I can play a long continuous session and see what happens.

    _________Designed to match Original STW gameplay.


    Beta 8 + Beta 8.1 patch + New Maps + Sound add-on + Castles 2

  16. #16
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: New Memory Leak Thread for 1.5

    I'm running XP Home SP2. The "footprint" I see for the OS is about the same as you.
    Rome Total War, it's not a game, it's a do-it-yourself project.

  17. #17
    Actual Person Member Paul Peru's Avatar
    Join Date
    Sep 2004
    Location
    Yurp
    Posts
    529

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Mouzafphaerre
    .
    768 > 512
    .
    How true that is!

    anyway, I just took it for granted that the leak was taken away, but I'll post my findings here later.

    Its a bit lame/sad if it's still there whan they said it wasn't...
    Sono Pazzi Questi Romani
    Paul Peru: Holier than thy bucket!

  18. #18

    Default Re: New Memory Leak Thread for 1.5

    1 Gig of Ram and I got memory leaks in 1.3, but only after 4 hours +, and the game was still playable, it just took 10 mins to shut it down.

    Havent installed the patch yet as Im busy atm.

    Try Civ4 for a nightmare of memory usage tho
    And your heart beats so slow, Through the rain and fallen snow across the fields of mourning to a light that's in the distance.
    Oh, don't sorrow, no don't weep
    For tonight at last I am coming home.
    I am coming home.

  19. #19
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Paul Peru
    Its a bit lame/sad if it's still there whan they said it wasn't...
    To be fair, they said that the memory leak was fixed in the "campaign map." So this could leave any number of other memory leaks...and it might have just been a single thing that was found and fixed, but there could and probably were multiple problems.
    Rome Total War, it's not a game, it's a do-it-yourself project.

  20. #20
    Member demon rob's Avatar
    Join Date
    Sep 2004
    Location
    terra australis, vic
    Posts
    33

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Kaldhore
    Try Civ4 for a nightmare of memory usage tho
    Civ4 - another bad move to 3d! Wonder how galciv2 is going to be after it goes 3d as well.

    Kaldhore - have you tried the Civ4 memory fixer? (available through apolyton or civ fanatics) Works brilliantly. A third party app fixing the memory use of the main program - incredibly inneficient programming by Firaxis it seems in the way it allocates 3d objects in directx.

  21. #21

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Red Harvest
    To be fair, they said that the memory leak was fixed in the "campaign map." .

    No deffinalty still there in campaign map, as previously stated just takes longer. Accidently left the game running when I went to work for about 7 hours. Took ages to get it to do anything when I came back, very scientifically it took exactly they time to swear at it a bit...smoke a ciggie....swear some more.... go make a coffee.... smoke two more fags and then the load/save/exit screen came up. Although I doubt anyone will play for this long and i hadnt noticed any problems for the two hours I was playing before I left the pc, where as before the patch the slow down was noticable in this time frame. Note this is with BI installed but playing ROME

  22. #22

    Default Re: New Memory Leak Thread for 1.5

    How can someone play a game continuously for 4 hours?
    I rarely play more than a haour conitinuously.

  23. #23
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Post Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by red comyn
    Accidently left the game running when I went to work for about 7 hours. Took ages to get it to do anything when I came back
    I don't think you're describing a memory leak here. The game won't leak memory if it's not doing anything. I'm an expert memory leaker so I know something about this. Perhaps what you're seeing is the OS trying to reclaim memory written to disk for an inactive process.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  24. #24

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Atilius
    I don't think you're describing a memory leak here. The game won't leak memory if it's not doing anything. I'm an expert memory leaker so I know something about this. Perhaps what you're seeing is the OS trying to reclaim memory written to disk for an inactive process.

    More than possibly,not an expert on these things, much like the contestants on catch phrase I "say what I see" but ill take your word for it.... although when i brought up the task manager to exit the game, the memory usage was HUGE and had the little insufficiant virtual memory warning up. Which it did after no time before the patch, would trying to recalim memory usage do this too?

  25. #25

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by KSEG
    How can someone play a game continuously for 4 hours?
    I rarely play more than a haour conitinuously.
    4 Hours is actually quite small, It can be up to 12 hours on days off (with breaks in between)
    And your heart beats so slow, Through the rain and fallen snow across the fields of mourning to a light that's in the distance.
    Oh, don't sorrow, no don't weep
    For tonight at last I am coming home.
    I am coming home.

  26. #26

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by demon rob
    Civ4 - another bad move to 3d! Wonder how galciv2 is going to be after it goes 3d as well.

    Kaldhore - have you tried the Civ4 memory fixer? (available through apolyton or civ fanatics) Works brilliantly. A third party app fixing the memory use of the main program - incredibly inneficient programming by Firaxis it seems in the way it allocates 3d objects in directx.
    I rarely Play it atm, but If they havent patched when I go back to it I'll try that fix. Cheers
    And your heart beats so slow, Through the rain and fallen snow across the fields of mourning to a light that's in the distance.
    Oh, don't sorrow, no don't weep
    For tonight at last I am coming home.
    I am coming home.

  27. #27
    Now sporting a classic avatar! Member fallen851's Avatar
    Join Date
    Oct 2005
    Posts
    799

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Atilius
    I'm an expert memory leaker.
    Can I see your qualifications?
    "It's true that when it's looked at isolated, Rome II is a good game... but every time I sit down to play it, every battle, through every turn, I see how Rome I was better. Not unanimously, but ultimately." - Dr. Sane

    http://www.youtube.com/watch?v=L6eaBtzqqFA#t=1h15m33s

  28. #28

    Default Re: New Memory Leak Thread for 1.5

    I have WinXP + SP2 and 512 MB RAM. Normally 300 MB of that RAM is free and my pagefile is 350 MB in size. When I start RTW v1.5 and reload my campaign, the game uses 250 MB of the available RAM and adds 300 MB to the page file. I ran the game for 48 hours without exiting; playing on and off within that period. While the RAM usage stayed around 250 MB for the 48 hour period, the pagefile usage gradually increased from the inital 300 MB to 600 MB. At this point I was experiencing significant slowdowns as WinXP juggled parts of the program in and out of the pagefile depending on what I was doing in the game. If I had 1000 MB of RAM, I probably wouldn't have experienced any slowdowns.
    Last edited by Puzz3D; 12-18-2005 at 21:14.

    _________Designed to match Original STW gameplay.


    Beta 8 + Beta 8.1 patch + New Maps + Sound add-on + Castles 2

  29. #29
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Post Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by fallen851
    Can I see your qualifications?
    Well, I can't find my Memory Leakers Anonymous membership card so here's some typical AtiliusCode:


    void SayHelloToFallen( void )
    {
    int len = 16;

    // Allocate memory for the text message:
    //
    char* message = new char[ len ];

    message = "Hi fallen851\n";

    cout << message << endl;

    // Oops, the variable "message" is about to go out of scope and
    // I haven't deleted the memory it points to - this memory will be
    // lost until the program terminates

    return;
    }

    int main( void )
    {
    SayHelloToFallen();
    return 0;
    }
    Last edited by Atilius; 12-19-2005 at 05:45.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  30. #30
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: New Memory Leak Thread for 1.5

    Quote Originally Posted by Puzz3D
    I have WinXP + SP2 and 512 MB RAM. Normally 300 MB of that RAM is free and my pagefile is 350 MB in size. When I start RTW v1.5 and reload my campaign, the game uses 250 MB of the available RAM and adds 300 MB to the page file. I ran the game for 48 hours without exiting; playing on and off within that period. While the RAM usage stayed around 250 MB for the 48 hour period, the pagefile usage gradually increased from the inital 300 MB to 600 MB. At this point I was experiencing significant slowdowns as WinXP juggled parts of the program in and out of the pagefile depending on what I was doing in the game. If I had 1000 MB of RAM, I probably wouldn't have experienced any slowdowns.
    Puzz3D,

    I left task manager running while playing for a few hours. It is using more and more pagefile as time passes (at least as new battles load.) Eventually it hits the limit and things lag. Interestingly...Windows says the limit is 1536 with 768 initial, but the game is maxing at 768 and I think this is where the lag begins. Either XP is actively fighting to get back to 768 (countering the leak) or the app is not requesting or getting more space. These are the defaults and "recommended" by XP itself for my level of RAM. I do not recall having set any of these even though the "custom" button is checked...so I'm trying to figure out why it would be that way. I've not tried to tweak XP the way I used to tweak 98. Guess it is time to start.

    Level of detail, shadows, and the number/size of battles (particularly sieges) will likely greatly impact the total memory being used and the page file growth. I max everything, and that runs well for a few hours.
    Rome Total War, it's not a game, it's a do-it-yourself project.

Page 1 of 2 12 LastLast

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
  •  
Single Sign On provided by vBSSO