Skip to content

Commit fbc26f8

Browse files
committed
demo: Fix computation of stuck clusters
This used to count stuck groups, not clusters, which resulted in confusing logs.
1 parent 2d5734b commit fbc26f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/nanite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ void nanite(const std::vector<Vertex>& vertices, const std::vector<unsigned int>
624624
#if TRACE
625625
printf("stuck cluster: simplified %d => %d over threshold\n", int(merged.size() / 3), int(simplified.size() / 3));
626626
#endif
627-
stuck_clusters++;
627+
stuck_clusters += groups[i].size();
628628
stuck_triangles += merged.size() / 3;
629629
for (size_t j = 0; j < groups[i].size(); ++j)
630630
retry.push_back(groups[i][j]);

0 commit comments

Comments
 (0)