Memory-fix by Harkonnen is out!

Harkonnen said:
Yes. I started it with version 1.00, and finished when 1.09 came out. It's independent patch, it will work with 1.10 and forth as well.
Hmmm - except that the patcher might check for .dll consistancy when it patches.
 
Are you going to release source code? Without the ability to see what you changed (and recompile it myself) I will not download and execute dlls.
 
Can't wait to try it MP, SP I have no issues but last night my secodary began to have moments of slow response...

Hark: BTW it looks like there is going to be a meeting that I have to go to at my usual leave time so I'll be here a bit later than norm to put the file up on my mirror though you could always do fileplanet or such with the final release. I'll give it a go in pirates and see if it effects anything, is there anything special I have to do? like rename files or such... prob not...
 
Well done! :goodjob:

Reduction of slow down is significant. However it seems that the leaderheads get corrupted after a while (with insane_mode=1 in full screen), but that may be because I loaded a few saves without restarting CIV.
 
warpstorm said:
Are you going to release source code? Without the ability to see what you changed (and recompile it myself) I will not download and execute dlls.

paranoid... like me ;)

but honestly: you should submit your stuff to firaxis. i'm sure they would appreciate you fixing one of the memory leaks and would surely add you in the credits. this would also reduce the concerns of us paranoid people :goodjob:
 
warpstorm
I understand your worries, but I've spent around a month with this patch, all my free time and even more. I mean I will make an offer to Firaxis as soon as I see that this patch is really helpful. Currently I see it is.

If Firaxis refuses to deal with me, I will publicly release it, probably even with an article on codeproject or something like that. I have released binaries, and I will release the source as soon as making it public won't hurt my interests in my deal with Firaxis if it's ever gonna happen. I wouldn't think about any kind of "deal" with Firaxis if it would be very easy, or even very hard, but easy in the last instance - this last version.

It is very complex code with very complex approach and a lot of rewriting and profiling. Heck, it contains dynamic assembly code allocations near template specialization next line... so it's gonna cost.

I am a bit different man, as compared to those who would spread trojans, viruses and alike through this most-wanted patch (also I doubt that kind of people would pursue their goals this way). Yes, I know ASM pretty well, but that's becauses I'm ~12 years with computer in my 22. Also I have attended ACM programming contest world finals twice. I don't want to boast, just people at these contests are sooner "awkward eggheads" rather than so-called "russian mafia" spreading s**t on the web.

P.S: If you look into the very begining of 'memory leak' thread, you will see that I HAVE released source when I tried some easy effort of reporting less physical RAM. After all it's 174Kb of source code in size, and the code isn't yet well-organized. Wanna read it? :)
 
sabrewolf
You're reading my mind :)

Well, anyway - you'll see it either as part of next official Firaxis patch or as a source code.
 
phalzyr
About "Pirates". If they use "python24.dll" too like civ4 does, then steps are the same. If not, you'll have to wait a couple of hours until I release a loader, so we don't need to carry that python burden anymore.
 
Harkonnen said:
phalzyr
About "Pirates". If they use "python24.dll" too like civ4 does, then steps are the same. If not, you'll have to wait a couple of hours until I release a loader, so we don't need to carry that python burden anymore.

Couple hours? Cool I'll still be here for about 3 more. Any more than that though... :D
 
CyberChrist and all
If 'insane_mode=1' starts well, plays well, but some time later gives visual bugs WITHOUT alt-tabbing, then decreasing 'vid_mem_usage' should help leaving 'insane_mode=1'. Try ~30-40 Mb if you experience visual bugs even without alt-tabbing in insane mode.

The effect of vid_mem_usage should be kind of such:
slow-slow-avg-avg-best-avg-slow-slow-bugs-crash

It's up to you to find that golden "best"... It depends on video memory and AGP apperture size (the latter is set in BIOS to 32, 64, 128 or 256Mb, depending on your motherboard capabilities). But if that would be everything it depends on, I would set it automatically. The nasty thing is that it also depends on graphics quality you select, and that is hard to track from my code.
 
Great work, Harkonnen, thank you!
 
Harkonnen said:
Wanna read it? :)

Sure, if the comments are in English.
 
Outstanding! I will definitely be trying this out when I get home.
 
Need Help From Harkonnen or anyone who has used his patch! When I try to enter the Configure settings file it says access denied how do I get around this?
 
What program are you using to try to open the ini file? Is civ 4 running at same time? Oh and where did you download them to, it sounds like a NTFS file security issue could be the cause also...

Edit: One more thing... did you try right clicking the ini and chose "open with" and select notepad?

OH and Hark: The meeting got canceled so I'll be here another hour rather than two, otherwise I'll miror first thing tomorrow.
 
I'm afraid your patch crashes my Civ IV during the "Init Engine" stage. Here's what I get in the event log:

Faulting application civilization4.exe, version 1.0.9.1722, faulting module patchbyharkonnen.dll, version 0.0.0.0, fault address 0x000017f6.

As soon as I set patch_on to 0 it starts working again, so it's probably not the python DLL. Using the patch with insane_mode off doesn't fix it, either.

I'm using a ATI Radeon 9800 Pro with 128 MB and the 5.11 Catalysts, so I guess it's not the graphics hardware... :)

Is there anything I can supply you with, like a Dr. Watson log or the memory dump or something?

(I'd break out the debugger, but debugging without source is a bit beyond what I'd want to do...)
 
Briareos said:
I'm afraid your patch crashes my Civ IV during the "Init Engine" stage. Here's what I get in the event log:

Did you try holding the shift button down while starting up the game?
 
Back
Top Bottom