[PATCH] window: Don't needlessly sync parent and geometry
Daniel Stone
daniel at fooishbar.org
Sun Sep 14 05:52:21 PDT 2014
Hi,
On 13 September 2014 15:35, Ondřej Majerech <majerech.o at gmail.com> wrote:
> When a toytoolkit client redraws, the toolkit syncs the parent and
> geometry. If a client redraws often (such as the terminal drawing a huge
> amount of output), this can spam the compositor with requests and may
> result in the client's eventual being killed.
>
> We don't need to send requests for changing the geometry or parent if
> these haven't changed. So remember the last geometry and parent, and
> update them only if needed.
>
It looked from weston-terminal output like these happened completely
unbounded by the frame callback; should these instead be moved somewhere
where the requests are only issued once per frame, regardless of how many
times they change in between?
Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140914/9fd268e5/attachment.html>
More information about the wayland-devel
mailing list