Re: Massive points drawing, and mouse handling!



On Sat, 2008-06-07 at 12:06 +0200, Matteo Landi wrote:
> Hi all,
>  i'm writing a small application using gtk which tries to plot the
> mandelbrot set.
> Because of i have to analyse each pixel of my pixmap, my program gets very slow.

pixmaps live on the "server side", so doing this is very slow.

you should draw into a GdkPixbuf, which lives inside your program, and
when drawing/analysis/whatever is complete, draw the pixbuf into a
window. it will be much faster.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]