[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: optimizing drawing to drawing_area
- From: Rok Roskar <rroskar artsci wustl edu>
- To: learfox furry ao net
- Cc: GTK App Devel <gtk-app-devel-list gnome org>
- Subject: Re: optimizing drawing to drawing_area
- Date: Tue, 9 Apr 2002 03:53:21 -0500
Thanks for your reply... I was just wondering what the difference between
building a pixmap and building an RGB buffer internally is... because the
way I do it now, I build the pixmap and then display it all at once on the
drawing area. Thanks,
rok
On 2002.04.09 02:57 Taura Milana wrote:
> On 2002.04.08 21:21 Rok Roskar wrote:
> > I am drawing a large array of data (1024x1024) to a drawing_area and it
>
> > seems to be really slow. Is there any way to optimize it? I first read
> > the
> > data into an array and then create the pixmap pixel by pixel... then I
> > draw the entire pixmap to the drawing area at once. Any ideas?
> >
>
> If you use GDK RGB buffers, then you can internally
> blit your 1024x1024 buffer in local memory then send
> it all at once (or just a rectangular area) to the
> GtkDrawingArea's GdkWindow.
>
> --
> Sincerely, ,"-_ \|/
> -Capt. Taura M. , O=__ --X--
> ..__ ,_JNMNNEO=_ /|\
> OMNOUMmnne. {OMMNNNEEEEOO=_
> UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
> UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
> OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
> EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
> NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
> http://furry.ao.net/~learfox/
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]