Open VC73 opened 2 years ago
That doesn't surprise me too much. shm-based capture takes a lot of bandwidth, and is a blocking operation due to the graphics APIs.
I see, sadly I guess that not much can be done atm then.
You can try to replace your capture setup with txproto which does support zero-copy dmabuf capture or screencopy with dmabuf.
Setup is not trivial, you need to write lua scripts. There are some examples, though: https://github.com/cyanreg/txproto/tree/master/DOCS/examples
Edit: OBS with the wlrobs plugin should support it as well I think.
Just tried the obs pluging using dmabuf and the result is the same even tough the recording itself is smooth
Sway Version: 1.8-dev-eaeb173a (Dec 24 2021, branch 'master')
Debug Log: https://gist.github.com/VC73/ebc69a2ea01f5fe7d87bd453302ef40c
Config: default config with
exec systemctl --user import-environment
To make xdg-desktop-portal-wlr workDescription: Opened some game (in this case War thunder using vulkan), the game plays fine but when I start to capture the screen starts dropping frames while capturing the game.