Re: Cairo + GTK animation - high Xorg load

Uli Schlachter <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On 29.10.2016 04:43, Lawrence D'Oliveiro wrote:
> On Fri, 28 Oct 2016 18:08:10 +0200, Uli Schlachter wrote:
> 
>> ... the pixel data in the buffer is serialised and sent to the X
>> server over a unix socket 60 times per seconds.
> 
> Isn’t there some option to use shared memory to communicate with the X
> server, when it and the client are on the same physical machine (the
> most common case)?

Yup, that's pretty much cairo_surface_create_similar_image()'s reason of
existance.

But "some random image surface" created via cairo_image_surface_create()
won't have its pixel data sitting in a suitable shared memory segment.
Using shared memory here would involve one more copy of the data into a
shared memory segment and that would be slow again (but possibly less
slow than sending the data over the X11 socket? I don't know).

Uli
-- 
“Some people are worth melting for.” - Olaf
-- 
cairo mailing list
[email protected]
https://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.