[Freeciv-Dev] (PR#7301) Unified and cached overview
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7301 >
> [i-freeciv-lists@xxxxxxxxxxxxx - Tue Jan 27 10:29:27 2004]:
>
> On Mon, Jan 26, 2004 at 10:57:43PM -0800, Jason Short wrote:
> >
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=7301 >
> >
> > > [i-freeciv-lists@xxxxxxxxxxxxx - Mon Jan 26 08:36:38 2004]:
> >
> > > Also note that in the FS client an expose doesn't destroy the image
> > > drawn onto a canvas. The reason is that the FS client has an "expose
> > > buffer" for the whole screen. (This is also nice for doing screen
> > > dumps.) So with this you will encode client specific mechanism into
> > > the common code.
> >
> > But what you're doing also encodes a client-specific mechanism into the
> > common code, since if an additional blit IS required it's not easy for
> > the GUI code to do it.
>
> I don't understand. What additional blit? The FS one? This isn't done
> by common client code nor by FS client code nor by the widget code. It
> is done by the backend. Every drawing is done to an off-screen buffer
> which holds the whole screen image. This buffer is then copied to the
> screen. This is done by request (when the widget code redraws a
> widget) or when an expose event arrives.
In the current GTK client the blit goes directly to the widget's GDK
window. This basically means it goes directly to the screen.
But a more efficient GTK client implementation would have another
backing store. In this case the blit would go onto the backing store,
and this backing store would have to be copied to the screen manually.
But who does this copying? It should be that after all 4 rectangles are
drawn, the entire thing is copied to screen (or the gdk window is
invalidated to trigger an expose event). But since the caller may be in
common code there's no hook for this operation.
I think this corresponds to your FS case. You're drawing to a backend
buffer which is later flushed to the screen. But who does the flushing?
The backend does it on request or when an expose event arrives: but
without a hook into the overview draw function there's no way to request it.
jason
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Jason Short, 2004/01/24
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Raimar Falke, 2004/01/25
- [Freeciv-Dev] (PR#7301) Unified and cached overview, Jason Short, 2004/01/25
- [Freeciv-Dev] (PR#7301) Unified and cached overview, Jason Short, 2004/01/25
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Raimar Falke, 2004/01/26
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Raimar Falke, 2004/01/26
- [Freeciv-Dev] (PR#7301) Unified and cached overview, Jason Short, 2004/01/27
- [Freeciv-Dev] (PR#7301) Unified and cached overview, Jason Short, 2004/01/27
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Raimar Falke, 2004/01/27
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Raimar Falke, 2004/01/27
- [Freeciv-Dev] (PR#7301) Unified and cached overview,
Jason Short <=
- [Freeciv-Dev] (PR#7301) Unified and cached overview, Jason Short, 2004/01/27
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Raimar Falke, 2004/01/28
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Mike Kaufman, 2004/01/28
- [Freeciv-Dev] Re: (PR#7301) Unified and cached overview, Raimar Falke, 2004/01/29
|
|