]> git.sesse.net Git - nageru/blobdiff - flow.cpp
Reduce the spam in apitrace a bit.
[nageru] / 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);