summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RendererWorld.cpp')
-rw-r--r--src/RendererWorld.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp
index 1743a25..e0a28a4 100644
--- a/src/RendererWorld.cpp
+++ b/src/RendererWorld.cpp
@@ -386,6 +386,7 @@ void RendererWorld::Render(RenderState & renderState) {
Frustum frustum(projView);
size_t culledSections = sections.size();
+ unsigned int renderedFaces = 0;
for (auto& section : sections) {
glm::vec3 point{
section.second.GetPosition().x * 16 + 8,
@@ -400,8 +401,10 @@ void RendererWorld::Render(RenderState & renderState) {
continue;
}
section.second.Render(renderState);
+ renderedFaces += section.second.numOfFaces;
}
this->culledSections = culledSections;
+ DebugInfo::renderFaces = renderedFaces;
glCheckError();
}