Sephi
Deity
- Joined
- Jan 25, 2009
- Messages
- 3,321
Haven't been able to keep up with the modding community so maybe someone can give me information about current status
Are there mods that already use multithreading to reduce turn times?
Are there mods that plan to add this feature?
I currently implement multithreading for the AI in my mod and I'd like to know if others tried it before. Like how they tried it, results, discovered limitations, etc. For example if someone managed to multithread python
I do not know enough about python so I don't even bother.
So far I multithreaded worker AI as a test (still not very optimized). List shows time needed.
1 thread used: 3.5s
2 thread used: 2.5s
3 threads used: 2.3s
4+ and more threads are slower. I have CPU with only two cores and hyperthreading, so 3 threads optimum is kinda expected.
might make a modcomp when it is done, but probably there is no demand for it anyway
Are there mods that already use multithreading to reduce turn times?
Are there mods that plan to add this feature?
I currently implement multithreading for the AI in my mod and I'd like to know if others tried it before. Like how they tried it, results, discovered limitations, etc. For example if someone managed to multithread python

So far I multithreaded worker AI as a test (still not very optimized). List shows time needed.
1 thread used: 3.5s
2 thread used: 2.5s
3 threads used: 2.3s
4+ and more threads are slower. I have CPU with only two cores and hyperthreading, so 3 threads optimum is kinda expected.
might make a modcomp when it is done, but probably there is no demand for it anyway