From 119e48bfa0f20686bc7cb0fd43323a7648aa598a Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 21 Jan 2019 17:11:37 -0500 Subject: use dead edges to improve solver speed --- src/sdl/main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/sdl') 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 -- cgit v1.2.3