pop-os / xdg-desktop-portal-cosmic

GNU General Public License v3.0
27 stars 22 forks source link

Don't create new screencopy session or wl_buffer each frame #30

Closed ids1024 closed 4 months ago

ids1024 commented 4 months ago

This shouldn't change behavior, except that WAYLAND_DEBUG=1 will show a lot fewer Wayland requests while capturing the screen. And perhaps some performance benefit, but I haven't specifically verified that.

The changes to how screencopy is handled should help for moving to the v2 screencopy protocol (https://github.com/pop-os/cosmic-protocols/pull/24).