summaryrefslogtreecommitdiff
path: root/test/perf-geoData.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-26 13:51:33 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-26 14:14:13 +0000
commit7fba471728f2216d7e3b7900297fc3b3531e286c (patch)
tree5caef3b2efc23aefccb215ec9005cd8e7d2e91b8 /test/perf-geoData.cpp
parentFix todo for handling a terrain walk from outside the mesh (diff)
parentModel positions as integers (diff)
downloadilt-7fba471728f2216d7e3b7900297fc3b3531e286c.tar.bz2
ilt-7fba471728f2216d7e3b7900297fc3b3531e286c.tar.xz
ilt-7fba471728f2216d7e3b7900297fc3b3531e286c.zip
Merge branch 'ints' into terrain
Conflicts fix, compiles, some test failures remain. Trees not added, possibility of OM invalid handle assertion failures, normals broken due to integer overflow in Newell's method.
Diffstat (limited to 'test/perf-geoData.cpp')
-rw-r--r--test/perf-geoData.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/perf-geoData.cpp b/test/perf-geoData.cpp
index 4fed632..4d4505e 100644
--- a/test/perf-geoData.cpp
+++ b/test/perf-geoData.cpp
@@ -8,17 +8,17 @@ namespace {
terrain_findPoint(benchmark::State & state)
{
for (auto _ : state) {
- benchmark::DoNotOptimize(tm.findPoint({315555, 495556}));
+ benchmark::DoNotOptimize(tm.findPoint({315555000, 495556000}));
}
}
void
terrain_walk(benchmark::State & state)
{
- const glm::vec2 point {310001, 490000};
+ const glm::vec2 point {310001000, 490000000};
const GeoData::PointFace start {point, tm.findPoint(point)};
for (auto _ : state) {
- tm.walk(start, {319999, 500000}, [](auto f) {
+ tm.walk(start, {319999000, 500000000}, [](auto f) {
benchmark::DoNotOptimize(f);
});
}