Skip to content

Commit

Permalink
Add showing vertex count
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmMoltony committed Feb 3, 2024
1 parent 4c52a0a commit e4f0db8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nitrofiles/config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

fsErrorMessages true
clearConsoleOnPlay false
showPolygonRamCount false
showPolygonRamCount true
logLevel 1
drawPlayerHitboxes false

Expand Down
8 changes: 5 additions & 3 deletions source/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1619,9 +1619,11 @@ void Game::draw(void)

if (showPolygonRamCount)
{
int vc = 0;
glGetInt(GL_GET_POLYGON_RAM_COUNT, &vc);
printf("Polygon count: %d\n", vc);
int polys = 0;
int verts = 0;
glGetInt(GL_GET_POLYGON_RAM_COUNT, &polys);
glGetInt(GL_GET_VERTEX_RAM_COUNT, &verts);
printf("Poly: %d Vert: %d\n", polys, verts);
}
}

Expand Down

0 comments on commit e4f0db8

Please sign in to comment.