Optimized DLLs for C2C rev9632

masaykh

Prince
Joined
Jan 16, 2012
Messages
446
In search for better performance i recompiled dlls with additional optimizations.

I assume it can work faster then current dlls used by mod

In this archive >>>> http://rgho.st/7pcRs4vSR <<<< provided dlls (for current build of C2C)
if you ready to risk - make backup by copying corresponding files to other location
(something like folder named "backup") and then copy new dlls from archive to Beyond the Sword
folder it should replace 4 file (4 windows with question if you really want to replace file or not).

then test and write here about results)


PROVIDED AS-IS, no guarantee provided for any harm that can be done directly or indirectly to you or your computer hardware.

Updated to SVN 9632
 
Last edited:
I get a 503 error screen No server service available.

And 2nd try returns a 404.
 
OK i tried it and i get a TON of XML errors, here are JUST some:
 

Attachments

  • 1.JPG
    1.JPG
    43.9 KB · Views: 122
  • 2.JPG
    2.JPG
    16.1 KB · Views: 113
  • 3.JPG
    3.JPG
    32.8 KB · Views: 115
Dll updated and restested - working fine!
 
I have an older game that is slowing down so I will try this for that game.

Does this replace the BtS main .dll as well as Caveman2Cosmos .dll too?

Since you state it "replaces 4 files". Why is it necessary to replace the BtS .dll?
 
i recompiled boost and python for additional boost of speed
so in archive c2c dll + boost dll + python
dont forget to make backup of original files

all 4 dlls use one additional dll from intel named libmmd.dll

ps. it replace only c2c dll + python and boost dlls
 
Last edited:
You need to provide better instructions please. I find this very sparse at best.

I'm not going to change BtS .dll with out a better explanation of what I'm supposed to back up and replace. You have .dll files (3 of them) but also .PDB files

If it was only changing C2C's .dll then that's not such a big deal. But changing Civ4 or BtS .dll is another matter.

Give a step by step process or I'm not going to try it.
 
Minimaly:
place libmmd.dll to directory where Civ4BeyondSword.exe located. (BtS folder)
and CvGameCoreDLL.dll + CvGameCoreDLL.pdb to Mods\Caveman2Cosmos\Assets replacing currently existing files

additionaly you can replace in BtS folder :
boost_python-vc71-mt-1_32.dll
boost_python-vc71-mt-gd-1_32.dll
python24.dll
as my versions supposed to be faster.

pdb files not present in BtS , so you only will be adding my files (better with them for debug reasons).

all replaced files better to backup somewhere

now instructions clearer ?
 
boost_python-vc71-mt-gd-1_32.dll

I do not have this in my BtS or Civ4 directory. Is this for a different version?

I only have boost_python-vc71-mt-1_32.dll and python24.dll.
 
it is just debug version - can be ignored if your installation dont have it

in result BtS folder should look like this
xvshx8wW.png
 
Last edited:
I like to get info from players and modders.

in my case many actions lowered from 25-35 seconds to 15-20 (like adding new building to queue)
 
This looks really interesting, but it is completely drained of information. What happened, which should make it faster and are there any measurements to tell if it is 1% or 50% faster?

The dll's where compiled using an older version of the Intel c++ compiler. Which isn't free and I don't think that Intel still sells such old versions. So unless piracy is involved we can't get that compiler.

The last Visual C++ 2003 aka vc7.1 compatible of the Intel compiler is 11.1. If you try it with the 12.x versions the dll can be compiled but debugging isn't possible.
 
i have access to that compiler legaly. so no problem.
you sure about 11.1 - currently on my work machine installed 10.1 but i can request access to 11.1 if it will work.
 
i have access to that compiler legaly. so no problem.
you sure about 11.1 - currently on my work machine installed 10.1 but i can request access to 11.1 if it will work.

11.1 is the last version that supports Visual Studio 2003 so it should work.
 
ok, i got access to intel c++ 11.1 finally, so build with updated version will be done soon)
 
DLL updated, please test and at last give some feedback...pleeease!
 
So far with your dll in place in a Normal speed game mid Classical era with 7AI the Load time for the save was a bit over 2 minutes. Turns have ranged from a high of 58 seconds to a low of 50 seconds. I have 23 cities and hundreds of military units active in a war against another AI (Just took his capital). He has lost 3 cities to me and soon a 4th once I restage my stacks. And a few turns to heal the most important units.

I will next remove your files and put back in the old. I will then see how long it takes to load a save from desktop shortcut and then some turn lengths.

As for time for loading build ques. I don't use automated prebuilt ques. So no info for you there.
 
Hurray, first feedback!
turn time higher or lower then with standart dll?
what CPU do you have?

If @alberts2 or @Koshling or someone else have ideas about compiler settings that can potentialy lead to slower load time - tell me please :)
 
Back
Top Bottom