aboutsummaryrefslogtreecommitdiff
path: root/src/sdl
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-21 17:11:37 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-21 17:11:37 -0500
commit119e48bfa0f20686bc7cb0fd43323a7648aa598a (patch)
tree4d48d08e0ee13158cd46a977e244161774e27a7a /src/sdl
parent4588b0ef57fb3fd8689cd1d241be9b00307baa1f (diff)
downloadsok-119e48bfa0f20686bc7cb0fd43323a7648aa598a.tar.bz2
sok-119e48bfa0f20686bc7cb0fd43323a7648aa598a.zip
use dead edges to improve solver speed
Diffstat (limited to 'src/sdl')
-rw-r--r--src/sdl/main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sdl/main.c b/src/sdl/main.c
index 83ea51e..852a5ae 100644
--- a/src/sdl/main.c
+++ b/src/sdl/main.c
@@ -131,6 +131,19 @@ set_level(
draw_ctx->level->name,
(int) level_num
);
+
+ if (false) {
+ // log dead edges (disabled)
+ for (size_t i = 0; i < ctx->num_dead_edges; i++) {
+ SDL_Log(
+ "dead edge: [%u, %u] => [%u, %u]",
+ ctx->dead_edges[i].src.x,
+ ctx->dead_edges[i].src.y,
+ ctx->dead_edges[i].dst.x,
+ ctx->dead_edges[i].dst.y
+ );
+ }
+ }
}
static void