From 89b67327525aa71c20983dfda9d48eaf83577314 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 12 Jun 2011 19:29:10 -0400 Subject: [PATCH] Skip the final xform when (re)joining the attractor --- cuburn/code/iter.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cuburn/code/iter.py b/cuburn/code/iter.py index 6ebab15..eace8f5 100644 --- a/cuburn/code/iter.py +++ b/cuburn/code/iter.py @@ -90,20 +90,19 @@ void iter(mwc_st *msts, iter_info *infos, float4 *accbuf, float *denbuf) { denbuf[0] = xfsel; break; // TODO: fail here } - {{if features.final_xform_index}} - float fx = x, fy = y, fcolor; - apply_xf{{features.final_xform_index}}(&fx, &fy, &fcolor, &rctx); - {{endif}} if (consec_bad < 0) { consec_bad++; continue; } - nsamps--; - // TODO: this may not optimize well, verify. + {{if features.final_xform_index}} + float fx = x, fy = y, fcolor; + apply_xf{{features.final_xform_index}}(&fx, &fy, &fcolor, &rctx); + {{endif}} + // TODO: this may not optimize well, verify. float cx, cy; {{if features.final_xform_index}} {{apply_affine('fx', 'fy', 'cx', 'cy', packer,