From 90d0f8aef01f0e928d1589530700b4e3e075e22c Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 24 Jan 2017 02:54:39 +0200 Subject: Increase the warning to 2ms Ideally we would want this to be lower than 1ms. Most time seems to go writing to pipe (which is 2 copies I guess? Write, and read and other end) The flip operation is also expensive if that's needed --- glcapture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'glcapture.c') diff --git a/glcapture.c b/glcapture.c index 96b5520..f0465fb 100644 --- a/glcapture.c +++ b/glcapture.c @@ -492,8 +492,8 @@ swap_buffers(void) } const double ms = (get_time_ns() - start) / 1e6; - if (ms >= 1.0) - WARNX("WARNING: capture took %.2f ms (>=1ms)", ms); + if (ms >= 2.0) + WARNX("WARNING: capture took %.2f ms (>=2ms)", ms); } static const char* -- cgit v1.2.3