diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-08-31 03:11:01 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-31 03:11:01 +0200 |
commit | 5f84ad1c767ed4e8fd67a27514fe38cdee9b3edf (patch) | |
tree | 12ce4f6c617da87b735f2b48c38dffb5a9dec15e /src | |
parent | 534c9fd2992d249a200c5ec95349b23e1433263b (diff) |
Attempt to reduce frame skip
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |