rlcevg / CircuitAI

Spring RTS local native AI
GNU General Public License v2.0
19 stars 20 forks source link

Circuit has large CPU spikes on Detriment mission #71

Closed GoogleFrog closed 6 years ago

GoogleFrog commented 6 years ago

Massive spikes in CPU usage reliably occur in the Detriment mission, making it fairly unplayable. Peaks have gone as high as 64% CPU usage. https://youtu.be/h0r7zUv4vmM

The video uses the most recent dev version of the mission that has a reduced number of circuits and units. The current stable version has more circuits but they do the same thing. The issue does not occur in the Scythe mission, with AI CPU usage peaking rarely at 12% for me.

rlcevg commented 6 years ago

How can i run Detriment and Scythe missions (preferably from command line) without going through chobby+campaign?

GoogleFrog commented 6 years ago

You cannot. With devmode.txt in your root folder and a zk.sdd you can enable dev mode in settings and skip missions.

rlcevg commented 6 years ago

The nightmare came true: https://github.com/rlcevg/CircuitAI/issues/14 Good news is that CBuilderManager::MakeTask seems to be the only source of lag spikes.