Skip to content

Commit

Permalink
fix benchmark for fair comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto committed Nov 11, 2024
1 parent cce2004 commit f3a41db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/sample_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,7 @@ class BenchmarkRain : public Sample
float x = -0.5f * m_gridCount * m_gridSize;
for ( int j = 0; j <= m_gridCount; ++j )
{
b2Polygon box = b2MakeOffsetBox( 0.5f * m_gridSize, 0.1f * m_gridSize, { x, y }, b2Rot_identity );
b2Polygon box = b2MakeOffsetBox( 0.5f * m_gridSize, 0.5f * m_gridSize, { x, y }, b2Rot_identity );
b2CreatePolygonShape( groundId, &shapeDef, &box );
x += m_gridSize;
}
Expand Down

0 comments on commit f3a41db

Please sign in to comment.