Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#11077) mapview citymap overlays are inefficient
Home

[Freeciv-Dev] (PR#11077) mapview citymap overlays are inefficient

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11077) mapview citymap overlays are inefficient
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Nov 2004 13:38:29 -0800
Reply-to: rt@xxxxxxxxxxx

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

The mapview draws citymap overlays when you press 't'.  These are 
updated whenever any drawing is done.  However this is inefficient 
because it must search outward to find any cities within radius.  This 
is easy enough when there are only 21 tiles within range, but when there 
are 20,000 tiles it becomes a bit slow ;-).  The thing is this would be 
easy to avoid if we just cached the value.

jason





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#11077) mapview citymap overlays are inefficient, Jason Short <=