ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rtcontrib.c
(Generate patch)

Comparing ray/src/util/rtcontrib.c (file contents):
Revision 1.52 by greg, Sat Feb 7 05:40:47 2009 UTC vs.
Revision 1.53 by greg, Thu Jun 11 18:32:24 2009 UTC

# Line 1148 | Line 1148 | trace_contribs(FILE *fin)
1148                                  "dummy ray(s) ignored during accumulation\n");
1149                          continue;
1150                  }
1151 <                if (!iblen ||                   /* need reset? */
1151 >                if (!iblen ||                   /* need flush/reset? */
1152                                  queue_length() > 10*nrtprocs() ||
1153                                  lastray+1 < lastray) {
1154                          while (wait_rproc() != NULL)
# Line 1161 | Line 1161 | trace_contribs(FILE *fin)
1161                  if (iblen) {                    /* trace ray if valid */
1162                          writebuf(rtp->pd.w, inpbuf, iblen);
1163                  } else {                        /* else bypass dummy ray */
1164 <                        queue_raytree(rtp);     /* empty tree */
1165 <                        if ((yres <= 0) | (waitflush > 1))
1166 <                                waitflush = 1;  /* flush after this */
1164 >                        queue_raytree(rtp);     /* queue empty ray/record */
1165 >                        if ((yres <= 0) | (xres <= 0))
1166 >                                waitflush = 1;  /* flush right after */
1167                  }
1168                  process_queue();                /* catch up with results */
1169                  if (raysleft && !--raysleft)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines