From: Steinar H. Gunderson Date: Wed, 11 Jul 2018 22:39:29 +0000 (+0200) Subject: Reduce the spam in apitrace a bit. X-Git-Tag: 1.8.0~76^2~228 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c240834b6e92f10da89c1cf6f4520c2b1b641312;p=nageru Reduce the spam in apitrace a bit. --- diff --git a/flow.cpp b/flow.cpp index 5673ef6..b46e0a1 100644 --- a/flow.cpp +++ b/flow.cpp @@ -15,6 +15,7 @@ #include #include +#include #include "util.h" @@ -524,6 +525,7 @@ int main(void) GLint available; do { glGetQueryObjectiv(query, GL_QUERY_RESULT_AVAILABLE, &available); + usleep(1000); } while (!available); GLuint64 time_elapsed; glGetQueryObjectui64v(query, GL_QUERY_RESULT, &time_elapsed);