Show whole topic Jan 03, 2013 7:26 pm
Toranaga Offline
Developer
Registered since: Dec 28, 2005
Location: Hamburg


Subject: Re: Ai implementation
Quote by Eiko:

3) Directly within the server main loop. Direct access to the game model.
  • Yes easy implementation
  • No AI could slow down the server main loop too much. That would affect the game speed an all clients.
  • No 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)