diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-01-21 17:11:37 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-01-21 17:11:37 -0500 |
commit | 119e48bfa0f20686bc7cb0fd43323a7648aa598a (patch) | |
tree | 4d48d08e0ee13158cd46a977e244161774e27a7a /src/sdl | |
parent | 4588b0ef57fb3fd8689cd1d241be9b00307baa1f (diff) | |
download | sok-119e48bfa0f20686bc7cb0fd43323a7648aa598a.tar.bz2 sok-119e48bfa0f20686bc7cb0fd43323a7648aa598a.zip |
use dead edges to improve solver speed
Diffstat (limited to 'src/sdl')
-rw-r--r-- | src/sdl/main.c | 13 |
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 |