URL: <http://gna.org/patch/?3309>
Summary: Run all threaded ai players in single thread Project: Freeciv Submitted by: cazfi Submitted on: Tue 22 May 2012 09:45:29 PM EEST Category: ai Priority: 5 - Normal Status: Ready For Test Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.5.0 _______________________________________________________ Details: 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. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 22 May 2012 09:45:29 PM EEST Name: SinglePlrThread.diff Size: 11kB By: cazfi <http://gna.org/patch/download.php?file_id=15772> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?3309> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev