xdg-desktop-portal-hyprland/include
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
..
config.h Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
fps_limit.h Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
logger.h Add support for config file 2021-03-03 10:29:56 +01:00
pipewire_screencast.h screencast: prefix macros to avoid conflict with system definitions 2021-01-09 12:21:13 +01:00
screencast.h Screencast session support (#22) 2020-04-16 10:21:55 +02:00
screencast_common.h Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
timespec_util.h Control how many frames are captured per second 2021-03-08 16:59:17 +01:00
wlr_screencast.h Update to wlr-screencopy-unstable-v1 version 3 2020-10-19 23:40:30 +02:00
xdpw.h Control how many frames are captured per second 2021-03-08 16:59:17 +01:00