From efee05461adf85f9d2730a008c757387364deb54 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 11 Jan 2024 21:25:59 +0100 Subject: 2ms leway --- src/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compositor.c') 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); -- cgit v1.2.3