[Xcb] Is there any way to intercept or generate protocol to an in-memory buffer?

Bart Massey bart at cs.pdx.edu
Tue Dec 26 21:42:20 UTC 2017


The overhead of doing separate XShmPutImages should be minimal. If you're
seeing performance issues from that, you might be using the XCB Image
library: you probably should look there for optimizations: I know that
little care went into trying to make it fast back when it was written.

On Tue, Dec 26, 2017 at 12:11 PM Clemens Eisserer <linuxhippy at gmail.com>
wrote:

> Hi there,
>
> I am currently trying to solve a performance problem in Java2D's
> xrender backend.
> What I actually would like to do is to defer the actual command
> submission to the x-server in order to batch many small XPutImages to
> one large XShmPutImage.
> I could do this in my own code (log API calls to an application
> managed buffer and call the coresponding Xlib/xcb functions later from
> within a large protocol-decoding switch statement). However I wonder
> if there isn't a more efficient way, given the fact that X's network
> transparency introduces some kind of defering anyway.
>
> Is there any way to intercept the protocol before it is sent to the
> X-Server?
> Or in case interception is not supported, is there a way to let xcb
> generate all protocol to a user-accessible / user-controlled buffer
> and submit it manually to the x-server?
>
> Thank you in advance and best regards, Clemens
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/xcb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20171226/c8c6221e/attachment.html>


More information about the Xcb mailing list