--- ray/src/util/glareval.c 1991/03/21 12:28:23 1.5 +++ ray/src/util/glareval.c 1991/04/02 14:29:17 1.7 @@ -95,6 +95,7 @@ seekerr: } +#ifdef DEBUG pict_stats() /* print out picture read statistics */ { static long lastcall = 0L; /* ncall at last report */ @@ -102,12 +103,12 @@ pict_stats() /* print out picture read statistics */ if (ncall == lastcall) return; - fprintf(stderr, "%s: %ld scanlines read, %ld reused\n", - progname, nread-lastread, - (ncall-lastcall)-(nread-lastread)); + fprintf(stderr, "%s: %ld scanlines read in %ld calls\n", + progname, nread-lastread, ncall-lastcall); lastcall = ncall; lastread = nread; } +#endif double @@ -141,10 +142,13 @@ int vh, vv; if (compdir(dir, vh, vv) < 0) return(-1.0); + npixinvw++; if ((res = pict_val(dir)) >= 0.0) return(res); - if (rt_pid == -1) + if (rt_pid == -1) { + npixmiss++; return(-1.0); + } rt_buf[0] = ourview.vp[0]; rt_buf[1] = ourview.vp[1]; rt_buf[2] = ourview.vp[2]; @@ -177,10 +181,13 @@ float *vb; vb[vh+hsize] = -1.0; continue; } + npixinvw++; if ((vb[vh+hsize] = pict_val(dir)) >= 0.0) continue; - if (rt_pid == -1) /* missing information */ + if (rt_pid == -1) { /* missing information */ + npixmiss++; continue; + } /* send to rtrace */ if (n >= MAXPIX) { /* flush */ rt_compute(rt_buf, n);