I created sort of a super scenario to test my optimizations. I've beefed up both sides by about 5x and France now has an army of 231 corps containing 924 divisions totaling over 11 million men! The actual French Army in WWII consisted of about 123 divisions so this mock up is approximately 7 1/2 times as large.
This is just to see if my supply system is large enough to handle a very large army.
Anyway, here's the timing logs before optimization:
111661852| 0|Supply Points to Units
111704450| 42598|Depots to Units
111727008| 22558|Depots to Units
111756022| 29014|Rail to Units
111773117| 17095|Cities to Depots
111775071| 1954|Depots from cell
The first column shows the clock, the second the time elapsed since the last log and the third a description of what happened. Note, the time for an action appears on the line AFTER the description. The total of the 4 highlighted actions is 111,265 milliseconds or about 1 minute 50 seconds. Total time for the complete cycle is about 2 minutes.
Here's the same timing log after optimization:
33627270| 0|Supply Points to Units
33627866| 596|Depots to Units
33628545| 679|Depots to Units
33628928| 383|Rail to Units
33637130| 8202|Cities to Depots
33639272| 2142|Depots from cell
We are now down to a very reasonable 9860 milliseconds or about 10 seconds. Total time for the complete cycle is now about 19 seconds.
This can be cut down even further and will probably have to be once Russia comes on board but for now its good enough to not get in the way of further development.
So I'm on to the next stage:
Unit production....
No comments:
Post a Comment