Idea how to fix slow window resize in a composited desktop
Adam Jackson
ajax at nwnk.net
Tue Sep 4 09:33:13 PDT 2007
On Mon, 2007-09-03 at 13:52 +0200, Dennis Kasprzyk wrote:
> Hi,
>
> I think that I have found a solution for the slow window resize in a
> composited desktop environment. I don't know enough about the xserver
> internals to say that my idea will work, but I would like to share it with
> you.
>
> To prevent the need the reallocation of new window pixmaps on the xserver side
> and it's handling on the composite manager side during a frequent window
> resize, we could redirect the drawing of the window to a pixmap that is
> bigger than the window:
Yeah, this idea has come up before. We even have the internal hook for
this, in SetWindowPixmap. There are some situations where we can even
resize "for free", since most hardware has pitch or tile alignment
constraints. However, everything we've measured so far indicates that
the slowest part of resizing is application reflow, not pixmap
allocation.
It'd certainly be interesting to implement to see what the difference is
though.
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20070904/2ee21ffd/attachment.pgp>
More information about the xorg
mailing list