Page 1 of 7 1 2 3 4 ... LastLast
Results 1 to 30 of 193

Thread: Civilization4 memory usage fix

  1. #1
    Harkonnen604
    Chieftain
    Join Date
    09 Nov 2005
    Posts
    69
    Country
    This is Harkonnen604's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31

    Civilization4 memory usage fix

    I have just finished writing my own memory-fix which I started a month ago at another civ4 forum. It appears to solve a lot of CTD/swapping/slowness issues.

    http://forums.civfanatics.com/showthread.php?p=3420615

  2. #2
    ghen
    King ghen's Avatar
    Join Date
    17 Aug 1999
    Location
    Delaware
    Posts
    2,471
    Country
    This is ghen's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    03:31
    Interesting ideas, is this a final release yet?
    ~I like eggs.~

  3. #3
    Nikolai
    Deity Nikolai's Avatar
    Join Date
    12 Oct 2000
    Location
    Bergen, Norway
    Posts
    15,207
    Country
    This is Nikolai's Country Flag
    Thanks
    22
    Thanked 10 Times in 8 Posts
    Local Date
    May 23, 2013
    Local Time
    09:31
    Great work! Have you posted this in the files forum too btw?
    Do not fear, for I am with you; Do not anxiously look about you, for I am your God. -Isaiah 41:10
    The LORD your God is with you, he is mighty to save. He will take great delight in you, he will quiet you with his love, he will rejoice over you with singing. - Zephaniah 3:17

  4. #4
    Harkonnen604
    Chieftain
    Join Date
    09 Nov 2005
    Posts
    69
    Country
    This is Harkonnen604's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    Not yet posted.

    Well, according to effects this can be claimed as final, but there will be more releases during this week. Later today I will turn it into loader, so that 1.8Mb python24.dll won't be necessary.

    Also there are some ideas how to decrease it even more.

  5. #5
    mike2h
    Warlord
    Join Date
    25 Nov 2005
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    looking forward to your 'update', will definetly give this a shot. thx!

  6. #6
    Kuciwalker
    Deity Kuciwalker's Avatar
    Join Date
    17 Feb 2001
    Posts
    19,361
    Thanks
    5
    Thanked 16 Times in 12 Posts
    Local Date
    May 23, 2013
    Local Time
    03:31
    I have an even simpler fix! Exit the game and start it up again

    edit: wtf? why did : p turn into

    edit2: hm, they fixed it. Markos, add the damn santa hat to already!
    Last edited by Kuciwalker; December 7, 2005 at 21:58.

  7. #7
    Zen
    Chieftain
    Join Date
    07 Jul 2000
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    Harkonnen,

    I read your other thread (fanatics). You mention a memory leak thread of some sort.

    My basic question is this:

    what does your program/patch exactly solve (in very simple terms)?

    Does your program simple reduce the amount of data coming from each plot? Or does it reduce the memory required to display each plot? or does your program somehow stop the "memory leak"?


    Will your patch be helpful to those of us who don't have CTD and other problems, but do experience a HUGE slow loading time/operation time when playing on larger maps?

    I say this because I have a map that I am trying to work from that is ~8000 tiles big. It takes around 2 min just to load on my computer. I fear this slowness may force me to reduce the map size to create the scenario I wish to create---which would suck.

    thanks,

    -Zen Blade
    FARSCAPE......................

  8. #8
    StarLightDeath
    Warlord
    Join Date
    13 Jun 2005
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    02:31
    lol I love it. Fans fixing incomplete games.

  9. #9
    Bill3000
    King Bill3000's Avatar
    Join Date
    31 Jul 1999
    Location
    of Soloralism
    Posts
    2,246
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    03:31
    Originally posted by StarLightDeath
    lol I love it. Fans fixing incomplete games.
    Better than not having the ability to fix it.

    Trolling is bad, BTW.
    "Compromises are not always good things. If one guy wants to drill a five-inch hole in the bottom of your life boat, and the other person doesn't, a compromise of a two-inch hole is still stupid." - chegitz guevara
    "Bill3000: The United Demesos? Boy, I was young and stupid back then.
    Jasonian22: Bill, you are STILL young and stupid."

    "is it normal to imaginne dartrh vader and myself in a tjhreee way with some hot chick? i'ts always been my fantasy" - Dis

  10. #10
    Harkonnen604
    Chieftain
    Join Date
    09 Nov 2005
    Posts
    69
    Country
    This is Harkonnen604's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    Zen
    The primary goal was to reduce memory usage. You may read first 2 pages at shown thread - there I explained basics when someone else asked.

    Also it helped some people with CTDs - the thing I didn't expect from this patch It appears that CTDs were caused by memory overuse.

    My aim with this patch was to make my savegame playable with my 512Mb configuration, and I've put it down from ~650Mb to ~480Mb. It still swaps a little, but generally works nicely.

    All in all, yes - you should give it a try. This patch is driven towards reducing memory usage. Civ4 allocates identical items many times (e.g. many water squares), and I fight memory usage from this point.

  11. #11
    Solver
    Deity Solver's Avatar
    Join Date
    24 Sep 2000
    Location
    Latvia, Riga
    Posts
    18,354
    Country
    This is Solver's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    10:31
    Please keep in mind that, since this patch replaces game system files, you will not be able to play normal multiplayer games if you install that.

    I definitely hope, though, that the next offcial patch has a performance increase such as this.
    Solver, WePlayCiv Co-Administrator
    Contact: solver-at-weplayciv-dot-com
    I can kill you whenever I please... but not today. - The Cigarette Smoking Man

  12. #12
    dannyevilcat
    Chieftain dannyevilcat's Avatar
    Join Date
    10 Nov 2001
    Posts
    36
    Country
    This is dannyevilcat's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 22, 2013
    Local Time
    23:31
    Originally posted by StarLightDeath
    lol I love it. Fans fixing incomplete games.
    As far as I can tell, this "fix" consists of pretty much turning off all the eye candy. Gimme a break, it would be unacceptable if this was coming from Firaxis.

  13. #13
    Harkonnen604
    Chieftain
    Join Date
    09 Nov 2005
    Posts
    69
    Country
    This is Harkonnen604's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    Solver
    1) python24.dll isn't game core DLL, and it's the only DLL coming with the game which is affected.

    2) In my next release python24.dll won't be affected.

    3) People tried to update binkw32.dll and mss32.dll (movie and sound subsystems) - I didn't hear anyone of them couldn't play multiplayer.

    dannyevilcat
    I am sorry, but you are wrong on this. You may leave your settings intact (highest or whatever), and it still will improve memory usage and speed it up if memory usage was critical for you before my fix. This fix DOES NOT eliminate any detail level. You may compare screenshots with and without patch if you want a proof

  14. #14
    Solver
    Deity Solver's Avatar
    Join Date
    24 Sep 2000
    Location
    Latvia, Riga
    Posts
    18,354
    Country
    This is Solver's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    10:31
    I think, though, that changing the Python DLL would still lead to MP incompatibility. If it's not so, though, then great.

    Did you make the video memory unmanaged?
    Solver, WePlayCiv Co-Administrator
    Contact: solver-at-weplayciv-dot-com
    I can kill you whenever I please... but not today. - The Cigarette Smoking Man

  15. #15
    Drachasor
    Prince
    Join Date
    29 Jun 2004
    Posts
    493
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    02:31
    Nice work, this does make huge games playable on my computer. Before even after my many troubles in configuration huge games were very slow to respond, but now it's pretty darn good (still some long pauses between turns, but that's alright).

    -Drachasor
    "If there's a child on the south side of Chicago who can't read, that matters to me, even if it's not my child. If there's a senior citizen somewhere who can't pay for her prescription and has to choose between medicine and the rent, that makes my life poorer, even if it's not my grandmother. If there's an Arab American family being rounded up without benefit of an attorney or due process, that threatens my civil liberties. It's that fundamental belief -- I am my brother's keeper, I am my sister's keeper -- that makes this country work." - Barack Obama

  16. #16
    Bill3000
    King Bill3000's Avatar
    Join Date
    31 Jul 1999
    Location
    of Soloralism
    Posts
    2,246
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    03:31
    I'm noticing a huge difference already.
    "Compromises are not always good things. If one guy wants to drill a five-inch hole in the bottom of your life boat, and the other person doesn't, a compromise of a two-inch hole is still stupid." - chegitz guevara
    "Bill3000: The United Demesos? Boy, I was young and stupid back then.
    Jasonian22: Bill, you are STILL young and stupid."

    "is it normal to imaginne dartrh vader and myself in a tjhreee way with some hot chick? i'ts always been my fantasy" - Dis

  17. #17
    Zen
    Chieftain
    Join Date
    07 Jul 2000
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    Harkkonen,

    please post again when your newest version (that doesn't alter a game dll) is out!

    -Zen Blade
    FARSCAPE......................

  18. #18
    Finarfin
    Warlord Finarfin's Avatar
    Join Date
    22 May 2003
    Posts
    151
    Country
    This is Finarfin's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    02:31
    This sounds great. I am definitely going to try it as larger maps are unplayable for me, even with 1GB RAM.

  19. #19
    Enigma_Nova
    King Enigma_Nova's Avatar
    Join Date
    07 Nov 2003
    Posts
    2,988
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    17:31
    If only I had the skills to create something this useful.

  20. #20
    mike2h
    Warlord
    Join Date
    25 Nov 2005
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    Originally posted by Zen
    Harkkonen,

    please post again when your newest version (that doesn't alter a game dll) is out!

    -Zen Blade
    2nd that one!

  21. #21
    gwgardner
    Settler
    Join Date
    07 Dec 2005
    Posts
    2
    Country
    This is gwgardner's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    Wow! I installed your patch/fix and it has made an enormous impact on gameplay. Fast movement in scrolling and by units, information popups occur instantly now, etc. Thanks very much for your hard work on this.

    I have a Dell 3000, pentium 4 3Ghz, 1 gig memory, nvidia geforce fx5500. Before your patch the game was achingly slow. Not it screams along.

    Oh, by the way, I did have to set the insane mode to 0 due to the black screen after an alt-tab.

  22. #22
    Harkonnen604
    Chieftain
    Join Date
    09 Nov 2005
    Posts
    69
    Country
    This is Harkonnen604's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    Solver
    Not exactly... It's unmanaged for D3D, but it's managed by my DLL instead.

    All
    Thanks for good words. Much appreciated

    All
    If size of python24.dll is the issue, you may download zlib1.dll instead (it does exactly same thing - loads my DLL).

    http://www.sampo.ru/~headden/zlib1.dll

    I thought a little, and came to idea that creating aside loader.exe isn't good. Just because civilization4.exe will restart worse, some people won't be able to fix shortcuts, and I will have to fix .savegame filetype, so that double-clicked savegame loads patched.

    Please, can anyone test it with multiplayer?

  23. #23
    mike2h
    Warlord
    Join Date
    25 Nov 2005
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    thx! kust downloaded.

  24. #24
    player1
    Emperor player1's Avatar
    Join Date
    18 Sep 2001
    Location
    Belgrade, Serbia
    Posts
    3,218
    Country
    This is player1's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    08:31
    Hmm...
    How to set memory use for a computer with Radeon 9000 (64MB), and 1GB or RAM.

    P.S.
    I think that AGP thing is set to 128 in BIOS.

  25. #25
    rjwoer
    Warlord rjwoer's Avatar
    Join Date
    03 Nov 2005
    Location
    St. Louis, MO
    Posts
    289
    Country
    This is rjwoer's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 22, 2013
    Local Time
    23:31
    Nice work.

    Your fix actually made it possible to load the game on both my systems for the first time with 1.09. Up to this point I'd reverted to 1.00 because it just wouldn't load. Needless to say, it's much appreciated.
    Last edited by rjwoer; December 8, 2005 at 03:31.
    One of these days I'll make 501 posts, and you won't have to look at my silly little diplomat anymore.
    "Oh my God, what a fabulous room. Are all these your guitars?"

  26. #26
    Blake
    Beyond the Sword AI Programmer Blake's Avatar
    Join Date
    16 Oct 2000
    Location
    I am a Buddhist
    Posts
    5,680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    20:31
    Works great. Much snapier and better memory usage, no longer grinds when quitting/alt-tabbing out.

    The leader portraits go flatcolor sometimes tho... there might be a setting to fix that... it didn't really bother me because I recognize them by the music.

    edit: I'll also note I was playing multiplayer with v1.00, so this patch is indeed "very compatible" as advertised.
    Last edited by Blake; December 8, 2005 at 04:39.

  27. #27
    Harkonnen604
    Chieftain
    Join Date
    09 Nov 2005
    Posts
    69
    Country
    This is Harkonnen604's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    player1
    I'd suggest to try some minimum first:
    vid_mem_usage = 32, insane_mode = 1

    If there are problems with the above settings, try this instead:
    vid_mem_usage = 32, insane_mode = 0

    Blake (and all othrers experiencing leaders flat-coloring)
    Try reducing 'vid_mem_usage' by 10 or 20. If that is still a problem, try 'insane_mode=0', but check performance changes, especialy after setting 'insane_mode=0' with 512Mb system.

    Also note that 'insane_mode=1' is good until you alt-tab frequently. If you alt-tab frequently (especially in full-screen mode), you should use 'insane_mode=0' or switch to windowed mode.

  28. #28
    Koyaanisqatsi
    Emperor Koyaanisqatsi's Avatar
    Join Date
    18 May 1999
    Location
    Robotropolis
    Posts
    3,032
    Country
    This is Koyaanisqatsi's Country Flag
    Thanks
    0
    Thanked 6 Times in 5 Posts
    Local Date
    May 23, 2013
    Local Time
    03:31
    Yes, it seems snappier overall...excellent! Although, I also had the problem with leaderheads displaying as a gray box. This was with vid_mem_usage set to 64, insane_mode=0, high quality settings on a 128MB GF6600GT.

    I also had an odd artifacting problem: When I move the map, the base of some towns had a weird shimmering effect. I tried to get a screenshot of it, but it didn't work very well...I highlighted the areas that were doing it on this shot:
    Attached Images Attached Images
    "In the beginning was the Word. Then came the ******* word processor." -Dan Simmons, Hyperion

  29. #29
    Harkonnen604
    Chieftain
    Join Date
    09 Nov 2005
    Posts
    69
    Country
    This is Harkonnen604's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    07:31
    I had shimmering too, but I thought it's general z-buffer artifact, I will investigate...

    Well, summing up - so far gray leader-box appears to be the only problem with some systems, and globe view speed didn't improve as was expected.

  30. #30
    player1
    Emperor player1's Avatar
    Join Date
    18 Sep 2001
    Location
    Belgrade, Serbia
    Posts
    3,218
    Country
    This is player1's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    08:31
    Originally posted by Harkonnen604
    player1
    I'd suggest to try some minimum first:
    vid_mem_usage = 32, insane_mode = 1

    If there are problems with the above settings, try this instead:
    vid_mem_usage = 32, insane_mode = 0
    Interesting...
    I tried 80 and 160! and none of them gave any problems.
    Exempt standard alt-tab problems for insane mod only.

    Although I did only tested just my vicotry standard map games.
    I don't play larger maps much due to tedious mircomanagement.

Page 1 of 7 1 2 3 4 ... LastLast

Similar Threads

  1. Memory Usage
    By scooch74 in forum Civilization IV General
    Replies: 13
    Last Post: January 13, 2006, 09:53
  2. Civilization4 memory usage fix
    By Harkonnen604 in forum Civilization IV Creation
    Replies: 0
    Last Post: December 7, 2005, 08:15
  3. Civilization4: The Movie!
    By Imran Siddiqui in forum Civilization IV General
    Replies: 10
    Last Post: November 15, 2005, 00:56
  4. Nueva DIOSA en Civilization4!!!
    By jm_ruiz in forum The Spanish Civilization Site - Archive
    Replies: 35
    Last Post: March 16, 2004, 23:36
  5. Game Performance and Memory Usage
    By RedArmy in forum CtP2-General/Help/Strategy/Multiplaying-Archive
    Replies: 13
    Last Post: August 1, 2001, 15:10

Visitors found this page by searching for:

civ 4 reduce memory usage

reduce memory usage of civilization 4

civilization 4 release RAM

error opening harkonnen.ini

python24.dll donalde em menos de 2 minutos

reducing memory usage civ 4

civ 4 ram usage reduce

Memory fix для civilization 4

civilization 4 ram usage

boost python24.dll for civilization 4 game download

civilization 4 memory requirements

civilization 4 memory fix

Civilization 5

civ IV wont save

civilization ram usage

civilization iv lower memory usage

civilization 4 memory usage

why does my civilization 4 always ask for python24.dll

civilization4

civ4 ram usage

memory fix civilization 4

civilization 4 wont start missing python24.dll

how do i fix python24.dll on civilization iv

python24.dll civilization beyond sword download

civ4 memory patch

Bookmarks

Posting Permissions