--- ../../pvm3.rsh/xep/mtile.c Wed Jul 9 09:56:56 1997 +++ mtile.c Thu May 20 08:59:40 1999 @@ -50,6 +50,18 @@ #include #include "pvm3.h" +/* + * With modern processors and a parallel system, it is WAY too easy to + * saturate the colormap at only 256. Of course, more depth takes longer, + * but that's why PVM is fun, right? So we make this a compile-time + * parameter (and really should make this a command line variable on the + * master that we vary in such a way that the EVERY IMAGE ALWAYS has + * neither more nor less than the full colormap. 2048 is pretty damn + * deep, however, and we might run into various bit truncations in the + * real variable space before we reach it. + */ +#define MAXDEPTH 2048 + char* calc_tile(); @@ -125,7 +137,8 @@ x = (ix * x2) / wd + x1; ar = x; ai = y; - for (ite = 0; ite < 255; ite++) { + for (ite = 0; ite < MAXDEPTH; ite++) { +/* for (ite = 0; ite < 255; ite++) { */ a1 = (ar * ar); a2 = (ai * ai); if (a1 + a2 > 4.0) @@ -133,7 +146,7 @@ ai = 2 * ai * ar + y; ar = a1 - a2 + x; } - pix[iy * wd + ix] = ~ite; + pix[iy * wd + ix] = ~ite%256; } } return pix;