Hi there.
the first thing i want to say about that: i dont know if its even possible in FAF.
so supreme commander always had problems when i comes to many units. many as in >2000
i bet everyone of you already noticed when you play with AI and use 1000 as unitlimit the seconds will pass like 5 seconds or more.
so as far as i know the AI is still using only one core(= thread). so i wondered how could you make an AI multithreaded?
first idea would be: much synchronizing. but this is hard, if not impossible and could be slower than one thread because of the synchronization. you would have to synchronize both, read and write on datastructures.
so i had the idea to make something like a "double state AI". you have 2 instances of the AI state (ressources, units...) and you read from the old state, and write into the other state. so you only have to synchronize the writes, and can completely forget about the reads. of course this needs some additional control structures, which i already have in my head.
so basically im asking if it would be possible to do this in FAF. if some people understand code better than text, i could make a little code sample in c/c++.
and if you say it would be only possible using python, you have to do it on your own XD. i recently had the "pleasure" to code in python and i miss my autocompletion and typed environment
so yeah let me know what you think about the idea, and if it would be possible