[maemo-developers] Can GTK+ make use of XSHM extension from MIT

From: Bin Chen binary.chen at gmail.com
Date: Thu Jan 10 10:12:36 EET 2008
Hello,

I am running GTK+ in a singal machine, the machine is slow so I want
make GTK+ use XSHM extension to accelerate the drawing speed.

By taking a look at both GTK+ source code and the MIT-SHM paper, my
conclusion is :

1) The XSHM can only support XImage and Pixmap.
2) The GTK+ engine update the image using XCopyArea, so its impossible
to accelerate the entire process.

I am thinking a case, we do all the rendering process in GTK+
side(such as use pango to render text, use other library to render
image), the transfer the rendered image to XServer using XSHM, then
draw this Image to the window.

Will this work?

Thanks.
Bin

More information about the maemo-developers mailing list