Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] Re: (PR#11133) Bug: wake up other units on tile
Home

[Freeciv-Dev] Re: (PR#11133) Bug: wake up other units on tile

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11133) Bug: wake up other units on tile
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Mon, 22 Nov 2004 16:48:45 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Mon, 22 Nov 2004, Jason Short wrote:

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=11133 >
>
> > [chrisk - Sun Nov 21 20:09:03 2004]:
> >
> >
> > CVS 21 NOV 2004 S2 GTK2
> >
> > <shift>-W command does not work for a unit, when there are no sentried
> units
> > on tile at first, but you change some fortified unit to sentried in city
> > dialog while the unit is blinking.
>
> This is a problem to fix.
>
> In theory we should reset the menus every time just about anything
> happens.  However this would probably be slow.
>
> What we need instead is a queue_menu_update() function.  This will call
> (in gtk) a gtk_idle_add() so that menus are updated just once for every
> series of packets received.  In particular we probably don't want to
> update menus in between turns even if the focus unit changes.
>
> The same is true for report dialog updates.  This would be a much easier
> solution than the current freeze/thaw method.

The freeze/thaw method is superior most of the time. For one, it is
simpler to debug. For another, it allows better control of updates. A
timer function would only reduce it to update every delta seconds.
This is especially important for heavy duty updates, like for the city
report.

> And also for left panel updates.
>
> And also...hmm, well maybe that's it.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa







[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#11133) Bug: wake up other units on tile, Vasco Alexandre da Silva Costa <=