From 6128fcfc8291d202d92c9a9a95baa3398ad09054 Mon Sep 17 00:00:00 2001 From: elsid Date: Tue, 13 Jul 2021 23:17:08 +0200 Subject: [PATCH] Use empty off mesh connections in benchmark To get proper comparison with the next change removing it from the cache key. --- .../benchmarks/detournavigator/navmeshtilescache.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/apps/benchmarks/detournavigator/navmeshtilescache.cpp b/apps/benchmarks/detournavigator/navmeshtilescache.cpp index d39161fda2..dc3b31ce41 100644 --- a/apps/benchmarks/detournavigator/navmeshtilescache.cpp +++ b/apps/benchmarks/detournavigator/navmeshtilescache.cpp @@ -88,17 +88,6 @@ namespace }); } - template - void generateOffMeshConnection(OutputIterator out, std::size_t count, Random& random) - { - std::uniform_real_distribution distribution(0.0, 1.0); - std::generate_n(out, count, [&] { - const osg::Vec3f start(distribution(random), distribution(random), distribution(random)); - const osg::Vec3f end(distribution(random), distribution(random), distribution(random)); - return OffMeshConnection {start, end, generateAreaType(random)}; - }); - } - template Key generateKey(std::size_t triangles, Random& random) { @@ -117,7 +106,6 @@ namespace RecastMesh recastMesh(generation, revision, std::move(indices), std::move(vertices), std::move(areaTypes), std::move(water)); std::vector offMeshConnections; - generateOffMeshConnection(std::back_inserter(offMeshConnections), 300, random); return Key {agentHalfExtents, tilePosition, std::move(recastMesh), std::move(offMeshConnections)}; }