summaryrefslogtreecommitdiff
path: root/indra/newview/llreflectionmapmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llreflectionmapmanager.h')
-rw-r--r--indra/newview/llreflectionmapmanager.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llreflectionmapmanager.h b/indra/newview/llreflectionmapmanager.h
index 337c4ca7fa..cfca9afcb4 100644
--- a/indra/newview/llreflectionmapmanager.h
+++ b/indra/newview/llreflectionmapmanager.h
@@ -106,6 +106,7 @@ public:
// release any GL state
void cleanup();
+ void cleanupQueryPool();
// maintain reflection probes
void update();
@@ -164,6 +165,10 @@ public:
U32 probeCount();
U32 probeMemory();
+ // glDeleteQueries is expensive, so we maintain a pool of queries
+ GLuint allocateQuery();
+ void recycleQuery(GLuint query);
+
private:
friend class LLPipeline;
friend class LLHeroProbeManager;
@@ -190,6 +195,8 @@ private:
// bind UBO used for rendering
void setUniforms();
+ std::deque<GLuint> mQueryPool;
+
// render target for cube snapshots
// used to generate mipmaps without doing a copy-to-texture
LLRenderTarget mRenderTarget;