]> git.sesse.net Git - nageru/commitdiff
Reduce the spam in apitrace a bit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 11 Jul 2018 22:39:29 +0000 (00:39 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 11 Jul 2018 22:43:03 +0000 (00:43 +0200)
flow.cpp

index 5673ef6f977842c57377983f58027041b44fa796..b46e0a10c74cff067b2a5c67675baece2adfe329 100644 (file)
--- a/flow.cpp
+++ b/flow.cpp
@@ -15,6 +15,7 @@
 
 #include <assert.h>
 #include <stdio.h>
+#include <unistd.h>
 
 #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);