From c240834b6e92f10da89c1cf6f4520c2b1b641312 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 12 Jul 2018 00:39:29 +0200 Subject: [PATCH] Reduce the spam in apitrace a bit. --- flow.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2