From 5f84ad1c767ed4e8fd67a27514fe38cdee9b3edf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 31 Aug 2020 03:11:01 +0200 Subject: [PATCH] Attempt to reduce frame skip --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index fd82611..e10c2c4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -999,7 +999,7 @@ int main(int argc, char **argv) { FD_SET(x11_fd, &in_fds); /* Wake up thread every frame even if no events are received */ - tv.tv_usec = 1000 * (1000.0 / (double)fps); + tv.tv_usec = 1000 * (1000.0 / ((double)fps * 2.0)); tv.tv_sec = 0; int num_ready_fds = select(x11_fd + 1, &in_fds, NULL, NULL, &tv);