Re: optimizing drawing to drawing_area
- From: Taura Milana <learfox furry ao net>
- To: GTK App Devel <gtk-app-devel-list gnome org>
- Subject: Re: optimizing drawing to drawing_area
- Date: Tue, 9 Apr 2002 00:57:51 -0700
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/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]