diff options
Diffstat (limited to 'bench/dijkstra.cpp')
-rw-r--r-- | bench/dijkstra.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bench/dijkstra.cpp b/bench/dijkstra.cpp index a50548d0..b0f1936d 100644 --- a/bench/dijkstra.cpp +++ b/bench/dijkstra.cpp @@ -9,13 +9,12 @@ namespace floormat { namespace { -auto A = astar(); -bool first_run = false; - void Dijkstra(benchmark::State& state) { (void)loader.wall_atlas_list(); auto w = world(); + auto A = astar(); + bool first_run = false; constexpr auto wcx = 1, wcy = 1, wtx = 8, wty = 8, wox = 0, woy = 0; constexpr auto max_dist = (uint32_t)(Vector2i(Math::abs(wcx)+1, Math::abs(wcy)+1)*TILE_MAX_DIM*iTILE_SIZE2).length(); |