summaryrefslogtreecommitdiff
path: root/indra/newview/llgltfmateriallist.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-11-11 22:45:42 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-11-12 00:19:21 +0200
commitcdf248d9860246fd0bee84f700642709fdebbe6e (patch)
treedbc5d4a4e502b92c7dd34d5947312abd539fc5a5 /indra/newview/llgltfmateriallist.cpp
parent7c677776801385166fe836857ca597a130dbda33 (diff)
SL-18391 Basic gltf material accounting
Plan is to expand it as needed with overrides, request rate and memory
Diffstat (limited to 'indra/newview/llgltfmateriallist.cpp')
-rw-r--r--indra/newview/llgltfmateriallist.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llgltfmateriallist.cpp b/indra/newview/llgltfmateriallist.cpp
index 206be33051..1a059ca9fd 100644
--- a/indra/newview/llgltfmateriallist.cpp
+++ b/indra/newview/llgltfmateriallist.cpp
@@ -37,6 +37,7 @@
#include "llviewercontrol.h"
#include "llviewergenericmessage.h"
#include "llviewerobjectlist.h"
+#include "llviewerstats.h"
#include "llcorehttputil.h"
#include "llagent.h"
@@ -626,6 +627,11 @@ void LLGLTFMaterialList::flushMaterials()
{
mLastUpdateKey.setNull();
}
+
+ {
+ using namespace LLStatViewer;
+ sample(NUM_MATERIALS, mList.size());
+ }
}
// static