Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] (PR#725) Order of end/new-turn activities
Home

[Freeciv-Dev] (PR#725) Order of end/new-turn activities

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ChrisK@xxxxxxxx
Subject: [Freeciv-Dev] (PR#725) Order of end/new-turn activities
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 May 2004 21:25:45 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=725 >

It should be fairly easy to keep the same ordering, but change the loop
structure so that each action is done atomically.  For example, instead of:

- For each player
  - For each city
    - Update production
    - Update tech

we should have

- For each shuffled player
  - For each city
    - Update production
- For each shuffled player
  - For each city
    - Update tech

This requires substantial code changes (because of all the moved loops)
but few logical changes.  However it won't necessarily improve things,
just make them more consistant.  The above may be one example because we
might want to update tech _before_ production (or maybe not...).

jason



[Prev in Thread] Current Thread [Next in Thread]