ai:revert AI enhancement

@Jammyjamjamman suspects the AI patch from commit
464860aa02 (diff-d96c21449fc203a306589b5bd1f8aaa1)
may be causing extra lag when playing mp with Windows clients.

This patch reverts most of that commit. Max expansions I set to 5, the
MG setting was 2.

If this fixes the lag, then we can consider looking at making these
changes again, but one at a time, making sure lag isn't a result before
making more changes.

Anyone can review this to learn some of the code, but I'd like to hear
feedback from Jammy before finally merging.
This commit is contained in:
andy5995 2018-05-04 10:44:24 -05:00 committed by Andy Alt
parent 3022427fd7
commit e018b26056
3 changed files with 4 additions and 4 deletions

View File

@ -316,7 +316,7 @@ namespace
minMinWarriorsExpandCpuUltra = 3;
minMinWarriorsExpandCpuNormal = 3;
maxMinWarriors = 20;
maxExpansions = 20;
maxExpansions = 5;
villageRadius = 15;
scoutResourceRange = 20;
minWorkerAttackersHarvesting = 3;

View File

@ -590,7 +590,7 @@ namespace
//workers
if (workerCount < 5)
ai->addTask (new ProduceTask (ucWorker));
if (workerCount < 100)
if (workerCount < 10)
ai->addTask (new ProduceTask (ucWorker));
if (workerRatio < 0.20)
ai->addTask (new ProduceTask (ucWorker));

View File

@ -109,7 +109,7 @@ namespace
getTestInterval () const
{
return
1000;
2000;
}
virtual string
getName () const
@ -459,7 +459,7 @@ namespace
getTestInterval () const
{
return
100;
2000;
}
virtual string
getName () const