[cairo] Cairo + GTK animation - high Xorg load
psychon at znc.in
Sat Oct 29 07:04:46 UTC 2016
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
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).
“Some people are worth melting for.” - Olaf
More information about the cairo