- The NTAI performance problem, NOT build placement.
Setup:
Any non flat map (eg. no green_field or speedmetal)
Config file that techs to level 2.
Max 350 unit per side (or under 1000 units combined.)
Single core cpu @2Ghz, plenty of ram, fast graphic card.
Problem:
With RAI or QAI, my FPS (frames per second) stays for the entire game (several hours) around 20FPS with the above unit cap.
With NTAI, my FPS also stays around 20fps (with stutter every time a ├óÔé¼┼ôbad pos├óÔé¼┬Ø marker is set). However about 15 to 40 minutes into the game it suddenly (within 10-40 seconds) drops to 2fps.
Observation:
When 1, 2 or 3 units start spamming (from spring, not NTAI logging) ├óÔé¼┼ôCan├óÔé¼Ôäót reach the destination├óÔé¼┬Ø to the console, the framerate drops drastically (from 20fps to 1fps), making a game with NTAI unplayable.
The framrate returns to 20fps, ONLY when all units spamming ├óÔé¼┼ôCan├óÔé¼Ôäót reach the destination├óÔé¼┬Ø are destroyed.
This happens with all units (L1, L2 & L3. Land, Water and a few times also for Air)
- I├óÔé¼Ôäóve seen a sub spam ├óÔé¼┼ôCan├óÔé¼Ôäót reach the destination├óÔé¼┬Ø because the tries to attack land units
I├óÔé¼Ôäóve seen a krogoth spam ├óÔé¼┼ôCan├óÔé¼Ôäót reach the destination├óÔé¼┬Ø because it tried to exit the factory, before the factory had ├óÔé¼┼ôreleased├óÔé¼┬Ø it. (it wasn├óÔé¼Ôäót at 100% health due to damage taken during construction)
Probable cause/theory:
When a unit spam ├óÔé¼┼ôCan├óÔé¼Ôäót reach the destination├óÔé¼┬Ø it asks NTAI for new orders, constantly, and with a very short time interval (few frames between new requests for new orders).
Since NTAI gives, most of the time, the same order to this unit, this leads to a CPU hog lock.



I still feel a game vs. NTAI is a playable experience, even though:
- Stutter due to build placement eating cpu cycles before making a ├óÔé¼┼ôbad pos├óÔé¼┬Ø mark
Solobuild only working as ├óÔé¼┼ôreduced parallel build├óÔé¼┬Ø
ConstructionExclusionRange not working at ALL.
b_rand_assault and b_assault not fixed (though the fix is simple, see earlier post)
Every player with a single core CPU (even a Core Sole OC to @4GHz) is going to find NTAI unplayable due to this issue. (Goidse, 1v0ry_k1ng and DJ is affected, see previous posts in this forum)
Btw. The reason I haven├óÔé¼Ôäót released my config file is due to this issue, I can NOT playtest against NTAI, when my config reaches higher level, as this issue is most prominent with big units.
I will release my config within three (I need some time testing config with big units) days after you release a new NTAI version with this bug fixed.
I will make a new post this evening, with a logfile from above issue. But since the logfile don├óÔé¼Ôäót show cpu usage, I do not think much info can be derived from this.