--- resynthesizer-git-a53f54d86.old/lib/engine.c +++ resynthesizer-git-a53f54d86/lib/engine.c @@ -254,11 +254,7 @@ return ( indices->isAlphaSource ? pixmap_index(corpusMap, coords)[indices->alpha_bip] != ALPHA_TOTAL_TRANSPARENCY : TRUE); } - /* Included here because it depends on some routines above. */ -// If STATS is not defined, it redefines stat function calls to nil -#include "stats.h" - /* Array of index of most recent target point that probed this corpus point --- resynthesizer-git-a53f54d86.old/lib/refiner.h +++ resynthesizer-git-a53f54d86/lib/refiner.h @@ -101,10 +101,6 @@ cancelFlag ); - // nil unless DEBUG - print_pass_stats(pass, repetition_params[pass][1], betters); - // printf("Pass %d betters %ld\n", pass, betters); - /* Break if a small fraction of target is bettered This is a fraction of total target points, not the possibly smaller count of target attempts this pass. --- resynthesizer-git-a53f54d86.old/lib/refinerThreaded.h +++ resynthesizer-git-a53f54d86/lib/refinerThreaded.h @@ -380,11 +380,6 @@ betters += temp; } - - // nil unless DEBUG - print_pass_stats(pass, repetition_params[pass][1], betters); - // printf("Pass %d betters %ld\n", pass, betters); - /* Break if a small fraction of target is bettered This is a fraction of total target points, not the possibly smaller count of target attempts this pass. --- resynthesizer-git-a53f54d86.old/lib/synthesize.h +++ resynthesizer-git-a53f54d86/lib/synthesize.h @@ -452,9 +452,6 @@ TNeighbor neighbors[IMAGE_SYNTH_MAX_NEIGHBORS]; guint countNeighbors = 0; - /* ALT: count progress once at start of pass countTargetTries += repetition_params[pass][1]; */ - reset_color_change(); - #ifdef SYNTH_THREADED2 // Changes part of alternative 2. See refinerThreaded.c for(target_index=startTargetIndex; @@ -630,10 +627,6 @@ { repeatCountBetters++; /* feedback for termination. */ - // For debug - // Must be before we store the new color values. - integrate_color_change(position, indices, targetMap, corpusMap, bestMatchCorpusPoint); - g_mutex_lock(&mutex); // Atomic write to color and sourceOf // Save the new color values (!!! not the alpha) for this target point setColor( indices, targetMap, position, corpusMap, bestMatchCorpusPoint); --- resynthesizer-git-a53f54d86.old/lib/meson.build +++ resynthesizer-git-a53f54d86/lib/meson.build @@ -30,7 +30,6 @@ 'engineParams.c', 'imageFormat.c', 'progress.c', - 'stats.c', 'targetPixels.c', ] --- resynthesizer-git-a53f54d86.old/lib/synthesize.h +++ resynthesizer-git-a53f54d86/lib/synthesize.h @@ -606,9 +606,6 @@ } } - store_betterment_stats(latestBettermentKind); - /* DEBUG dump_target_resynthesis(position); */ - /* Store best match. Compared to match from a previous pass: --- resynthesizer-git-a53f54d86.old/lib/engine.c +++ resynthesizer-git-a53f54d86/lib/engine.c @@ -603,10 +603,6 @@ prepareRecentProber(corpusMap, &recentProberMap); // Must follow prepare_corpus // Preparations done, begin actual synthesis - print_processor_time(); - - // Commented out, no longer works since progress() is not visible in engine - // progress(_("Resynthesizer: synthesizing")); refiner( parameters,