Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] (PR#6810) map_canvas_expose is inefficient
Home

[Freeciv-Dev] (PR#6810) map_canvas_expose is inefficient

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#6810) map_canvas_expose is inefficient
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 9 Nov 2003 15:15:46 -0800
Reply-to: rt@xxxxxxxxxxx

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

In gui-gtk-2.0 (and probably others) map_canvas_expose is called any 
time _part_ of the mapview is exposed.  It draws the update to the 
window, as it is supposed to do.

It also does other junk, like doing a few boolean checks (which may 
occasionally pass and result in more processing being done).  No problem 
there.

And is calls refresh_overview_canvas.  This is a big problem.  In 
gui-gtk-2.0, since map_canvas_expose is called (possibly multiple times) 
for every flush, this is HIDEOUSLY inefficient.

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#6810) map_canvas_expose is inefficient, Jason Short <=