]> git.cworth.org Git - apitrace/commitdiff
Removed arbitary limit on active queries.
authorJames Benton <jbenton@vmware.com>
Thu, 2 Aug 2012 10:37:44 +0000 (11:37 +0100)
committerJames Benton <jbenton@vmware.com>
Thu, 2 Aug 2012 10:39:29 +0000 (11:39 +0100)
This previously existed due to a suspected limit on queries on nvidia drivers,
however that bug was actually due to context switching which has now been fixed.

retrace/glretrace_main.cpp

index 67cef173f8123fe0fa860f6473f820ec834084dd..a4e6c27a63e629c699278ee992cea67feb5b8f77 100644 (file)
@@ -50,7 +50,6 @@ struct CallQuery
 
 static bool firstFrame = true;
 static std::list<CallQuery> callQueries;
-static const int maxActiveCallQueries = 128;
 static std::map<glws::Context*, GLuint> activePrograms;
 
 
@@ -180,12 +179,6 @@ beginProfile(trace::Call &call) {
         frame_start();
     }
 
-    /* Ensure we don't have TOO many queries waiting for results */
-    if (callQueries.size() >= maxActiveCallQueries) {
-        completeCallQuery(callQueries.front());
-        callQueries.pop_front();
-    }
-
     /* Create call query */
     CallQuery query;
     query.call = call.no;