Weston screenshooter blocks the display for over a second

Carsten Haitzler (The Rasterman) raster at rasterman.com
Wed Oct 30 09:25:41 UTC 2019


On Mon, 28 Oct 2019 18:43:02 +0100 CHUCO POGA <chcepogadowski at gmail.com> said:

> When attempting to make a screenshot under weston with Mod + S
> (weston-screenshooter), the entire display get's blocked for over a second.
> That causes an ugly jitter on the screen when displaying dynamic content
> (such as movies)
> 
> I have looked into the screenshooter client code and did some performance
> measurements, and it appears that the while(!buffer_copy_done) loop which
> calls wl_display_roundtrip takes a second to finish. Is there any way to
> make the screenshot async, to not interfere the currently displayed
> content? Or is it the way the protocol works under the hood?

If the screen is freezing entirely then it's not the client that is at fault
but the compositor, so you want to be debugging the compositor code (weston)
not the client. The client may help illustrate which requests are being sent at
that time, but it's the compositor at fault here.

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - raster at rasterman.com



More information about the wayland-devel mailing list