diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-01-11 21:25:59 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-01-11 21:25:59 +0100 |
commit | efee05461adf85f9d2730a008c757387364deb54 (patch) | |
tree | c65ea1074666e4810517dba648fcfbc385873d8f /src/compositor.c | |
parent | e2eb57312e31eb553e676bc8d554ec89437147f6 (diff) |
2ms leway
Diffstat (limited to 'src/compositor.c')
-rw-r--r-- | src/compositor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c index 92a7029..ee6c986 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -129,7 +129,7 @@ void ngxc_compositor_render(ngxc_compositor *self) { glFinish(); const double time_limit = 1.0f / 60.0f; // TODO: Get from randr - const double delayed_update = time_limit - frame_duration - 0.001; + const double delayed_update = time_limit - frame_duration - 0.002; //fprintf(stderr, "delayed update: %f\n", delayed_update); if(delayed_update > 0.0) usleep(delayed_update * 1000000.0); |