[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]
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
- [Freeciv-Dev] (PR#2858), Rafa³ Bursig via RT, 2003/01/19
- Message not available
- [Freeciv-Dev] Re: (PR#2858), Jason Short via RT, 2003/01/22
- Message not available
- [Freeciv-Dev] city text , sdl widgets and rock & roll ( was Re: (PR#2858) ), Rafa³ Bursig via RT, 2003/01/23
- Message not available
- [Freeciv-Dev] Re: city text , sdl widgets and rock & roll ( was Re: (PR#2858) ), Jason Short via RT, 2003/01/23
- Message not available
- [Freeciv-Dev] Re: city text , sdl widgets and rock & roll ( was Re: (PR#2858) ), Rafa³ Bursig via RT, 2003/01/23
- Message not available
- [Freeciv-Dev] Re: city text , sdl widgets and rock & roll ( was Re: (PR#2858) ), Jason Short via RT, 2003/01/23
- Message not available
- [Freeciv-Dev] Re: city text , sdl widgets and rock & roll ( was Re: (PR#2858) ), Jason Short via RT, 2003/01/23
- Message not available
- [Freeciv-Dev] Re: city text , sdl widgets and rock & roll ( was Re: (PR#2858) ),
Rafa³ Bursig via RT <=
|
|