Find a file
Zsolt Donca ab8ff54f4c Control how many frames are captured per second
The goal is to control the rate of capture while in screencast, as it
can represent a performance issue and can cause input lag and the
feeling of having a laggy mouse.

This commit addresses the issue reported in #66.

The code measures the time elapsed to make a single screen capture, and
calculates how much to wait for the next capture to achieve the targeted
frame rate. To delay the capturing of the next frame, the code
introduces timers into the event loop based on the event loop in
https://github.com/emersion/mako

Added a command-line argument and an entry in the config file as well
for the max FPS. The default value is 0, meaning no rate control.

Added code to measure the average FPS every 5 seconds and print it with
DEBUG level.
2021-03-08 16:59:17 +01:00
.builds Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
contrib Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
include Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
protocols Update to wlr-screencopy-unstable-v1 version 3 2020-10-19 23:40:30 +02:00
src Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
.editorconfig Add yml exception to editorconfig 2020-03-13 21:01:32 +01:00
.gitignore Fix CI with libpipewire02, libdrm. Remove png.h unused import. Cleanup style. 2020-03-13 21:01:32 +01:00
CONTRIBUTING.md Fix link to trigger-screen-shot.py 2021-03-04 20:42:40 +01:00
LICENSE Initial commit 2018-12-12 11:46:19 +01:00
meson.build Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
meson_options.txt build: add basu as sd-bus provider 2021-01-09 12:21:13 +01:00
org.freedesktop.impl.portal.desktop.wlr.service.in Add D-Bus and systemd service files 2020-04-10 10:48:41 +02:00
README.md Update README to include repology badge 2021-02-15 10:20:30 +01:00
wlr.portal Add river to portal UseIn list 2020-12-08 15:46:19 +01:00

xdg-desktop-portal-wlr

builds.sr.ht status

xdg-desktop-portal backend for wlroots

Building

meson build
ninja -C build

Installing

From Source

ninja -C build install

Distro Packages

Packaging status

Running

Make sure XDG_CURRENT_DESKTOP=sway is set.

When correctly installed, xdg-desktop-portal should automatically invoke xdg-desktop-portal-wlr when needed.

At the moment, some command line flags are available for testing, compatibility, or output selection. If you need to use one of these flags, you can provide an instance of xdpw using the following command:

/usr/lib/xdg-desktop-portal -r & xdg-desktop-portal-wlr [OPTION...]

To understand the available options, you can run xdg-desktop-portal-wlr --help

FAQ

Check out or FAQ for answers to commonly asked questions.

Please see the screencast compatibility guide for more information on compatible applications and how to get them working.

If you have a question or problem that is not mentioned in those documents, please open an issue or come chat with us in #sway on freenode IRC.

Contributing

If you're interested in testing or development, check out CONTRIBUTING.md for more information.

License

MIT