blob: 81cb16c72028b519e258096f2754169997e10d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "game/terrain.h"
#include "testMainWindow.h"
#include <benchmark/benchmark.h>
namespace {
const TestMainWindowAppBase window;
void
terrainMeshgen(benchmark::State & state)
{
Terrain terrain {GeoData::loadFromAsciiGrid(FIXTURESDIR "height/SD19.asc")};
for (auto _ : state) {
terrain.generateMeshes();
}
}
}
BENCHMARK(terrainMeshgen);
BENCHMARK_MAIN();
|