Skip to content

Commit 6481f50

Browse files
committed
demo: Remove total_triangles computation
It's mostly not meaningful other than as a rough sense of the overall memory consumption.
1 parent 4fb420a commit 6481f50

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

demo/nanite.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,16 +386,11 @@ void nanite(const std::vector<Vertex>& vertices, const std::vector<unsigned int>
386386
}
387387
}
388388

389-
size_t total_triangles = 0;
390389
size_t lowest_triangles = 0;
391390
for (size_t i = 0; i < clusters.size(); ++i)
392-
{
393-
total_triangles += clusters[i].indices.size() / 3;
394391
if (clusters[i].parent.error == FLT_MAX)
395392
lowest_triangles += clusters[i].indices.size() / 3;
396-
}
397393

398-
printf("total: %d triangles in %d clusters\n", int(total_triangles), int(clusters.size()));
399394
printf("lowest lod: %d triangles\n", int(lowest_triangles));
400395

401396
// for testing purposes, we can compute a DAG cut from a given viewpoint and dump it as an OBJ

0 commit comments

Comments
 (0)