mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
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:
parent
3022427fd7
commit
e018b26056
@ -316,7 +316,7 @@ namespace
|
||||
minMinWarriorsExpandCpuUltra = 3;
|
||||
minMinWarriorsExpandCpuNormal = 3;
|
||||
maxMinWarriors = 20;
|
||||
maxExpansions = 20;
|
||||
maxExpansions = 5;
|
||||
villageRadius = 15;
|
||||
scoutResourceRange = 20;
|
||||
minWorkerAttackersHarvesting = 3;
|
||||
|
@ -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));
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user