Re: Image-Data upload using SHM

Clemens Eisserer <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAFvQSYRW2CgcLWT_OXeMkdWieoXdOn+n4DJq3Fu44UQOMR80xg@mail.gmail.com>
Hi Chris

> At the moment the most mature use of XSHM is exposed through cairo-xcb.
> The catch is that to avoid the copy, you need to decode the pixel data
> into the ShmSegment which needs application support and the use of
> cairo_surface_create_similar_image() or even
> cairo_surface_map_to_image().

Thanks for the pointer, I'll have a look at it.


> Why is xcb not using a BigReq anyway?

As far as I know, xcb does use BigReq.
I am not an expert at such a low-level, but from my understanding xcb
allocates a fixed-size 16kb buffer,
and when writing more data than those 16kb, it has to flush the
output-buffer - so the x-server can consume the data.
At least that would explain the 25k context switches per second I am
experiencing.

Thanks, Clemens
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.