Summary: Run all threaded ai players in single thread
Submitted by: cazfi
Submitted on: Tue 22 May 2012 09:45:29 PM EEST
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Discussion Lock: Any
Planned Release: 2.5.0
Trying to make some fundamental design decisions about threaded AI it has
become clear that running each player in the thread of their own is simply not
going to work. Each such thread would take a lot of resourses (memory) and it
makes no sense to write new AI to freeciv that can handle only handful players
when at the same time max number of players is increased to hundreds.
In the long run probably the best solution is to run several players in the
same thread, but also have several such threads. Short term solution is
running several=all players in the same thread, and leave it to future to
extend system to handle multiple such threads.
Attached patch replaces per-player threads with single players-thread.
Date: Tue 22 May 2012 09:45:29 PM EEST Name: SinglePlrThread.diff Size: 11kB
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list