Skip to content

Commit

Permalink
vertexcodec: Only record control stats for v1
Browse files Browse the repository at this point in the history
This avoids displaying a redundant table for v0 traces.
  • Loading branch information
zeux committed Dec 20, 2024
1 parent b1d7cf5 commit fa8ab12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vertexcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,13 +547,14 @@ static unsigned char* encodeVertexBlock(unsigned char* data, unsigned char* data
if (version != 0)
{
ctrl = estimateControl(buffer, vertex_count, vertex_count_aligned, level);

assert(unsigned(ctrl) < 4);
control[k / 4] |= ctrl << ((k % 4) * 2);
}

#if TRACE
vertexstats[k].ctrl[ctrl]++;
vertexstats[k].ctrl[ctrl]++;
#endif
}

if (ctrl == 3)
{
Expand Down

0 comments on commit fa8ab12

Please sign in to comment.