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

Comparing ray/src/rt/rv3.c (file contents):
Revision 2.22 by greg, Thu Aug 21 07:05:59 2008 UTC vs.
Revision 2.23 by greg, Thu Aug 21 16:13:00 2008 UTC

# Line 25 | Line 25 | static const char      RCSid[] = "$Id$";
25   #define  sscanvec(s,v)  (sscanf(s,"%lf %lf %lf",v,v+1,v+2)==3)
26   #endif
27  
28 + static int  niflush;                    /* flushes since newimage() */
29  
30   int
31   getrect(                                /* get a box */
# Line 184 | Line 185 | paint(                 /* compute and paint a rectangle */
185          copycolor(p->v, thisray.rcol);
186          scalecolor(p->v, exposure);
187  
188 <        (*dev->paintr)(greyscale?greyof(p->v):p->v, p->xmin, p->ymin, p->xmax, p->ymax);
188 >        (*dev->paintr)(greyscale?greyof(p->v):p->v,
189 >                        p->xmin, p->ymin, p->xmax, p->ymax);
190  
191 <        if (dev->flush != NULL && raynum - lastflush >= WFLUSH*ray_pnprocs) {
191 >        if (dev->flush != NULL && raynum - lastflush >= ray_pnprocs *
192 >                        (ambounce > 0 && niflush < WFLUSH ? niflush : WFLUSH)) {
193                  lastflush = raynum;
194                  (*dev->flush)();
195 +                niflush++;
196          }
197          return(1);
198   }
# Line 249 | Line 253 | newimage(                                      /* start a new image */
253                  ray_popen(nproc);
254                  newparam = 0;
255          }
256 <                                                /* get first value */
256 >        niflush = 0;                            /* get first value */
257          paint(&ptrunk);
258   }
259  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines