summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-24 02:54:39 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-24 02:54:39 +0200
commit90d0f8aef01f0e928d1589530700b4e3e075e22c (patch)
tree93319ec2ff62753738be9829bce6ec4f0bb1f602
parent5e784f37b2f7b27b9b4806db57daff4d2d573009 (diff)
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
-rw-r--r--glcapture.c4
1 files changed, 2 insertions, 2 deletions
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*