Announcement

Collapse
No announcement yet.

Civilization4 memory usage fix

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

    Current version of the fix is not compatible with 1.52. It either does nothing or crashes. Update addressing this issue is on its way. The patch I was coding during last month is finally out. The patch is compatible with 1.00 and 1.09 versions of civ4. So, here we go. You will need 3...

  • #2
    Interesting ideas, is this a final release yet?
    ~I like eggs.~

    Comment


    • #3
      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
      I praise you because I am fearfully and wonderfully made - Psalms 139.14a
      Also active on WePlayCiv.

      Comment


      • #4
        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.

        Comment


        • #5
          looking forward to your 'update', will definetly give this a shot. thx!

          Comment


          • #6
            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, 22:58.

            Comment


            • #7
              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......................

              Comment


              • #8
                lol I love it. Fans fixing incomplete games.

                Comment


                • #9
                  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

                  Comment


                  • #10
                    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.

                    Comment


                    • #11
                      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

                      Comment


                      • #12
                        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.

                        Comment


                        • #13
                          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

                          Comment


                          • #14
                            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

                            Comment


                            • #15
                              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

                              Comment

                              Working...
                              X