diff options
Diffstat (limited to 'bench')
| -rw-r--r-- | bench/01-dijkstra.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/01-dijkstra.cpp b/bench/01-dijkstra.cpp index 1f1069ab..aecc885a 100644 --- a/bench/01-dijkstra.cpp +++ b/bench/01-dijkstra.cpp @@ -16,7 +16,7 @@ void Dijkstra(benchmark::State& state) { auto w = world(); - constexpr auto wcx = 1, wcy = 1, wtx = 8, wty = 8, wox = 3, woy = 3; + 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(); constexpr auto wch = chunk_coords_{wcx, wcy, 0}; constexpr auto wt = local_coords{wtx, wty}; @@ -39,7 +39,7 @@ void Dijkstra(benchmark::State& state) ch[{ wtx, wty }].wall_west() = metal2; ch[{ wtx, wty }].wall_north() = metal2; ch[{ wtx+1, wty }].wall_west() = metal2; - ch[{ wtx, wty -1}].wall_north() = metal2; + ch[{ wtx, wty +1}].wall_north() = metal2; for (int16_t j = wcy - 1; j <= wcy + 1; j++) for (int16_t i = wcx - 1; i <= wcx + 1; i++) @@ -53,7 +53,7 @@ void Dijkstra(benchmark::State& state) A.Dijkstra(w, {{0,0,0}, {11,9}}, // from {wpos, {wox, woy}}, // to - 0, max_dist, {32,32}, // size + 0, max_dist, {16,16}, // size first_run ? 1 : 0); }; |
