Re: Pb w/ gc, pixmap and darea



Now you might want to use the GDK RGB buffers if you plan to
do intensive live drawing.

Eeee, but they are so darn slow. I have an app that opens a screen-size window with a single drawing area in it. On a 300MHz GX1 (roughly a 266MHz Pentium-MMX) at 1024x768x16, using the XF86_SVGA server, it is _visibly_ wiping the image from top to bottom and left to right.

I also note that I have to go into a forced GTK idle loop after calling gdk_draw_rgb_image in order for a draw operation to finish. If I don't, about the bottom sixth of the screen doesn't get rendered. It seems that gdk_draw_rgb_image sends the image in roughly 128x128-sized blocks; I can see them being drawn.

I'm using gdk 1.something, I haven't gone to 2.x yet. I'm close to wondering if there is a way for me to get to the window memory directly (XShm?).


-- Lewin A.R.W. Edwards
Embedded Engineer, Digi-Frame Inc.
Work: http://www.digi-frame.com/
Tel (914) 937-4090 9am-6:30pm M-F ET
Personal: http://www.larwe.com/ http://www.zws.com/





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