diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2017-01-24 02:54:39 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2017-01-24 02:54:39 +0200 |
commit | 90d0f8aef01f0e928d1589530700b4e3e075e22c (patch) | |
tree | 93319ec2ff62753738be9829bce6ec4f0bb1f602 | |
parent | 5e784f37b2f7b27b9b4806db57daff4d2d573009 (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.c | 4 |
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* |