diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2025-04-28 09:37:00 +0100 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2025-04-28 09:37:00 +0100 |
commit | 0adc6ba15c8a44b23bfe7477ea94a746536329d7 (patch) | |
tree | a40404a3ceee30a863d0cc96c3713c5fd5f9402c /test/perf-terrain.cpp | |
parent | Fix all warnings in enumeration details code/tests (diff) | |
download | ilt-0adc6ba15c8a44b23bfe7477ea94a746536329d7.tar.bz2 ilt-0adc6ba15c8a44b23bfe7477ea94a746536329d7.tar.xz ilt-0adc6ba15c8a44b23bfe7477ea94a746536329d7.zip |
Fix all warnings in performance tests
Diffstat (limited to 'test/perf-terrain.cpp')
-rw-r--r-- | test/perf-terrain.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/perf-terrain.cpp b/test/perf-terrain.cpp index e75f80b..004e1af 100644 --- a/test/perf-terrain.cpp +++ b/test/perf-terrain.cpp @@ -1,6 +1,5 @@ #include "game/terrain.h" #include "gfx/camera.h" -#include "gfx/frustum.h" #include "gfx/gl/sceneShader.h" #include "testMainWindow.h" #include <benchmark/benchmark.h> @@ -13,7 +12,7 @@ namespace { { Terrain terrain {GeoData::loadFromAsciiGrid(FIXTURESDIR "height/SD19.asc")}; - for (auto _ : state) { + for (auto loop : state) { terrain.generateMeshes(); } } @@ -26,7 +25,7 @@ namespace { Camera cam {terrain.getExtents().min + GlobalPosition3D {0, 0, 10000}, 45.F, 1.F, 1, 10000}; cam.setForward(::north + ::east); - for (auto _ : state) { + for (auto loop : state) { terrain.render(shader, cam); } } |