Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] Re: city text , sdl widgets and rock & roll ( was Re: (PR#
Home

[Freeciv-Dev] Re: city text , sdl widgets and rock & roll ( was Re: (PR#

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: city text , sdl widgets and rock & roll ( was Re: (PR#2858) )
From: "Rafa³ Bursig via RT" <rt@xxxxxxxxxxxxxx>
Date: Fri, 24 Jan 2003 06:50:21 -0800
Reply-to: rt@xxxxxxxxxxxxxx

Dnia 2003.01.24 06:31 Jason Short via RT napisa³(a):
> Rafa³ Bursig via RT wrote:
> 
> > I propose :
> > 1) main screen/display buffer. 2) map buffer - terrain, cities ,
> units
> > are draw here.
> >
> >    update_map_canvas(..., TRUE) - will redraw 2) and draw it to 1)
> >    update_city_descriptions( FALSE ) - will draw city text /widgets
> to
> > 1)
> >    flush_screen() - call gtk_flush() ( copy 1) to framebuffer )
> 

SDL don't do such auto "flush", all must be done manualy...
but SDL can "flush" only part of screen ( rectangle ) or "flush" array 
of such rects at one call.

> Or, to put things in a more negative way...
> 
> What is the point of flushing a secondary buffer into the primary
> buffer if we're not going to flush to the screen?  Why not just wait 
> to do
> it?
> 
becouse after flushing a secondary buffer into the primary
buffer we can draw somthing else on primary buffer and then make 
"flush" all.
( and save one "flush" operations which is expensive )

After all actions I must call "flush" function to copy main buffer ( or 
part of it ) -> framebuffer.

> Certainly the GTK clients do such a flush - although they don't call
> gdk_flush, the flush is implicit since it takes place shortly
> afterwards.  The only time this makes a difference is when animation
> is done - and the animation will call gdk_flush.
> 
I will look again on "buffer" idea and think about it.

Rafal

----------------------------------------------------------------------
Powiedz sobie dobre "Dzien dobry"! >>> http://link.interia.pl/f168b





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