aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-31 14:39:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-31 14:39:40 +0000
commit5a074190960130b6136a398d83da43fd1e8ec7e2 (patch)
tree77a5b8ce40d8749c405958c398d26b6c22d07070 /config.h
parentmain: let getopt_long() print error message (diff)
wayland: optionally use the presentation time protocol to measure input lag
This adds a flag, -p,--presentation-timings, that enables input lag measuring using the presentation time Wayland protocol. When enabled, we store a timestamp when we *send* a key to the slave. Then, when we commit a frame for rendering to the compositor, we request presentation feedback. We also store a timestamp for when the frame was committed. The 'presented' callback then looks at the input and commit timestamps, and compares it with the presented timestamp. The delay is logged at INFO when the delay was less than one frame interval, at WARN when it was one frame interval, and at ERR when it was two or more frame intervals. We also update statistic counters that we log when foot is shut down.
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index bc28fa51..30e18f25 100644
--- a/config.h
+++ b/config.h
@@ -34,8 +34,8 @@ struct config {
} cursor;
size_t render_worker_count;
-
char *server_socket_path;
+ bool presentation_timings;
};
bool config_load(struct config *conf, const char *path);