Subject: Re: Ai implementation
Quote by Eiko:
3) Directly within the server main loop. Direct access to the game model.- easy implementation
- AI could slow down the server main loop too much. That would affect the game speed an all clients.
- No multicore support: All AI players and the Server itself share the same CPU core.
I think there is no inherent problem in writing the AI (and even the Server) as a multi-threaded application. So I think multicore support should be possible. We just have to think how to do it right without introducing too many locks.
Paul Grathwohl (pagra)